...
|
...
|
@@ -43,6 +43,9 @@ public class CMSHtmlController { |
|
|
try{
|
|
|
//取context下的html文件转成文件流
|
|
|
String filePath = request.getServletContext().getRealPath(url);
|
|
|
logger.info("getContentHtml: filePath is {}", filePath);
|
|
|
File f = new File(filePath);
|
|
|
logger.info("getContentHtml: file is {}, file path is {}", f, f.getPath());
|
|
|
fis = new FileInputStream(filePath);
|
|
|
|
|
|
os = new BufferedOutputStream(response.getOutputStream());
|
...
|
...
|
|