支持war包不解压的情况下运行。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user