Commit 7d90119202f42789d8a7226bc7e9b4b6e3eb01d5
1 parent
96a2b13b
修改系统日志为绝对路径
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/huaheng/pc/monitor/systemLog/controller/SystemLogController.java
@@ -19,7 +19,8 @@ public class SystemLogController { | @@ -19,7 +19,8 @@ public class SystemLogController { | ||
19 | */ | 19 | */ |
20 | // @Value("${log.path}") | 20 | // @Value("${log.path}") |
21 | // private String path; | 21 | // private String path; |
22 | - private String path = "D:\\company\\wms2\\WMSlog"; | 22 | + |
23 | + private String path = System.getProperty("user.dir")+"\\WMSlog"; | ||
23 | private String prefix = "monitor/systemLog"; | 24 | private String prefix = "monitor/systemLog"; |
24 | 25 | ||
25 | 26 |