Skip to content

Commit

Permalink
调整动态环境配置文件加载、事件总线服务启动逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeychen committed Sep 17, 2017
1 parent 7e54e34 commit 2109af3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -32,6 +32,8 @@
"classpath:/config/xspring.properties",
"file:./xspring.properties",
"file:./config/xspring.properties",
"classpath:/config/env.properties",
"file:./config/env.properties",
},
ignoreResourceNotFound = true
)
Expand Down
Expand Up @@ -45,7 +45,8 @@ public class EnvironmentInitializer implements SmartLifecycle, InitializingBean
private ScheduledExecutorService scheduledExecutorService;

private String[] profileLocations = new String[]{
ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + "/config/env.properties"
ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + "/config/env.properties",
ResourceUtils.FILE_URL_PREFIX + "./config/env.properties"
};

private boolean isRunning = false;
Expand Down

0 comments on commit 2109af3

Please sign in to comment.