Commit 8d82dc19 authored by Erystasius's avatar Erystasius Committed by Jason Song

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

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment