I am using a combination of @PropertySource and @ConfigurationProperties but I want to overwrite them with an external properties file
问题 I have built a spring boot project. Within it, I have a properties class that looks like this: @Configuration @PropertySource(value = "classpath:abc.properties") @ConfigurationProperties public class ABCProperties { private Map<String, String> someUrls; @Bean public Map<String, String> someUrls() { return someUrls; } public Map<String, String> getSomeUrls() { return someUrls; } public void setSomeUrls(Map<String, String> someUrls) { this.someUrls = someUrls; } } The contents of the abc