修复调试时只打开jodconverter-web目录里读不到配置文件异常

This commit is contained in:
陈精华 2019-04-26 11:22:37 +08:00 committed by kl
parent b4d3419797
commit 8f7c13850e

View File

@ -131,7 +131,11 @@ public class OfficeUtils {
userDir = userDir.substring(0, userDir.length() - 4);
} else {
String separator = File.separator;
userDir = userDir + separator + "jodconverter-web" + separator + "src" + separator + "main";
if (userDir.contains("jodconverter-web")) {
userDir = userDir + separator + "src" + separator + "main";
} else {
userDir = userDir + separator + "jodconverter-web" + separator + "src" + separator + "main";
}
}
return userDir;
}