I have an application.yml file and a sensitive-data.yml. I would like the properties in these files to be used brushed together. Is there any way to do that?
application.yml
sensitive-data.yml
Use can use @PropertySource
@PropertySource("classpath:foo.properties") @PropertySource("classpath:bar.properties") public class PropertiesWithJavaConfig { //... }
This link will help you: https://www.baeldung.com/properties-with-spring
1.4m articles
1.4m replys
5 comments
56.9k users