优先使用自定义office.home

This commit is contained in:
陈精华
2019-04-18 11:49:29 +08:00
committed by kl
parent af8ddc10da
commit f989fbf9c9
2 changed files with 19 additions and 5 deletions

View File

@@ -42,9 +42,7 @@ public class ConfigRefreshComponent {
String convertedFileCharset = sysProperties.getProperty("sun.jnu.encoding");
String[] textArray ;
String[] mediaArray;
String homePath = OfficeUtils.getHomePath();
String separator = java.io.File.separator;
String configFilePath = homePath + separator + "conf" + separator + "application.properties";
String configFilePath = OfficeUtils.getCustomizedConfigPath();
while (true) {
BufferedReader bufferedReader = new BufferedReader(new FileReader(configFilePath));
properties.load(bufferedReader);