I need to build includes of properties from other files in Spring boot on loading the app. Does Spring Boot provides anything like this?
application.properties
external_source_environment = classpath:source_UAT1.properties
//external_source_environment = classpath:source_PROD1.properties
source_UAT1.properties
source.url = http://oneexample_uat1.com
source.credentials = abc/cdw
source_PROD1.properties
source.url = http://oneexample_uat2.com
source.credentials = aaa/bbb
So in the code, I could just refer to properties name, while be able to switch the active file only (profiles won't work, since they are used for specifying environment where code is running, not selection between sources within already selected env):
@Configuration
public class Source {
@Value("${source.url}")
private String url
}