提交 8d82dc19 编写于 作者: E Erystasius 提交者: Jason Song

support setting apollo.cacheDir from app.properties (#2317)

上级 89c370e1
......@@ -223,6 +223,10 @@ public class ConfigUtil {
// 3. Get from server.properties
cacheRoot = Foundation.server().getProperty("apollo.cacheDir", null);
}
if (Strings.isNullOrEmpty(cacheRoot)) {
// 4. Get from app.properties
cacheRoot = Foundation.app().getProperty("apollo.cacheDir", null);
}
return cacheRoot;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册