代码拉取完成,页面将自动刷新
return request.getServletContext().getRealPath(File.separator) + File.separator + filePath;
File.separator 在windows 下面是 \ 而.getRealPath("") 是null 所以查询不到模板
改成
return request.getServletContext().getRealPath(“/”) + File.separator + filePath; 正常
getRealPath 参数应该是URL的斜杠 不应该是系统的文件路径的斜杠