java - Loading multiple YAML files (using @ConfigurationProperties?) - Stack Overflow
I have a couple of yaml files that describe several instances of a program. I now want to parse all those files into a List<Program>
(Map, whatever), so I can later on search for the most appropriate instance for a given criteria in all the programs.
I like the approach with @ConfigurationProperties
a lot, and it works good enough for a single yaml-file, but I haven't found a way yet to read all files in a directory using that method.
Read full article from java - Loading multiple YAML files (using @ConfigurationProperties?) - Stack Overflow
No comments:
Post a Comment