Commit 479dcc8d by QIANGLU

add url

parent ee1499e1
......@@ -22,8 +22,10 @@ public class ApolloContextInitializer implements ApplicationContextInitializer<C
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
String appId = environment.getProperty("spring.application.name");
String cacheDir = environment.getProperty("apollo.cacheDir", "/data/cacheDir");
if (!StringUtils.isEmpty(appId)) {
System.setProperty("app.id", appId);
System.setProperty("apollo.cacheDir", cacheDir);
}
}
......
apollo.meta=http://localhost:8080
\ No newline at end of file
apollo.meta=http://10.0.253.149:8080
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment