I am developing a spring boot application
I want to override some properties in src/main/resources/application.properties
with an external file (e.g.
If you do not want to use any solution from above, you could do the following in the start of your main(String args[])
method (before the usage of SpringApplication.run(MyClass.class, args)
:
//Specifies a custom location for application.properties file.
System.setProperty("spring.config.location", "target/config/application.properties");