Fix spring.config.additional-location default config

pull/137/head
johnniang 2019-03-25 09:53:04 +08:00
parent 6a2a4532b7
commit 61ab4a21cb
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ public class Application {
private final static Logger LOG = Logger.getLogger(Application.class);
public static void main(String[] args) {
System.setProperty("spring.config.additional-location", "file:${user.home}/halo/");
// Customize the spring config location
System.setProperty("spring.config.location", "classpath:/,classpath:/config/,file:./,file:./config/,file:${user.home}/halo/,file:${user.home}/halo-dev");
// Run application
SpringApplication.run(Application.class, args);