支持war包不解压的情况下运行。

This commit is contained in:
thinkgem
2018-07-02 23:00:37 +08:00
parent 606f773ebc
commit f44d13ddec
8 changed files with 63 additions and 19 deletions

View File

@@ -948,6 +948,10 @@ public class FileUtils extends org.apache.commons.io.FileUtils {
} catch (IOException e) {
e.printStackTrace();
}
// 取不到,取当前工作路径
if (StringUtils.isBlank(projectPath)){
projectPath = System.getProperty("user.dir");
}
return projectPath;
}
@@ -982,6 +986,10 @@ public class FileUtils extends org.apache.commons.io.FileUtils {
} catch (IOException e) {
e.printStackTrace();
}
// 取不到,取当前工作路径
if (StringUtils.isBlank(webappPath)){
webappPath = System.getProperty("user.dir");
}
return webappPath;
}