Merge branch 'test6.9.3' of http://git.yoho.cn/platform/platform-cms into test6.9.3
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -43,7 +43,7 @@ public class CMSHtmlController { | @@ -43,7 +43,7 @@ public class CMSHtmlController { | ||
43 | try{ | 43 | try{ |
44 | //取context下的html文件转成文件流 | 44 | //取context下的html文件转成文件流 |
45 | String filePath = request.getServletContext().getRealPath(url); | 45 | String filePath = request.getServletContext().getRealPath(url); |
46 | - logger.info("getContentHtml: filePath is {}", filePath); | 46 | + logger.info("getContentHtml: filePath is {},realPath is {}", filePath, request.getServletContext().getRealPath("/")); |
47 | File f = new File(filePath); | 47 | File f = new File(filePath); |
48 | logger.info("getContentHtml: file is {}, file path is {}", f, f.getPath()); | 48 | logger.info("getContentHtml: file is {}, file path is {}", f, f.getPath()); |
49 | fis = new FileInputStream(filePath); | 49 | fis = new FileInputStream(filePath); |
-
Please register or login to post a comment