IT changed some server url, and I want to setup the application with the new settings.
That server url variable is defined in the application.properties file available in classpath, but the new value is defined in the external application.properties file.
However for some reason the application still uses the server url defined in the classpath application properties file, ignoring the new value in the external file. The override is not working!
If I understand well the documentation it should work.
In main spring boot class I have defined two properties file with @PropertySources annotation.
@SpringBootApplication
@PropertySources({
@PropertySource("classpath:application.properties"),
@PropertySource("file:${SCDWPPT_HOME}/application.properties")
})
public class ScdwpptApplication extends SpringBootServletInitializer {
...
}