I am working on a project with several separate modules, each with their own application context properties files. I want to be able to load all these properties so that the
Following code snippet should get you started
classpath*:config/*/config1/*.properties
classpath*:config/*/config2/*.properties
classpath*:config/*/config3/*.properties
classpath*:custom.properties
You may store the property files in following hierarchy making sure config is reachable from via classpath
config
config1
a.properties
config2
b.properties
config3
c.properties
custom.properties