访问某个jsp页面时报错:Unable to compile class for JSP: An error occurred at
line: [173] in the generated java file:
[C:Users23769.IntelliJIdea2019.3system omcatUnnamed_epms_2workCatalinalocalhost_orgapachejspaaa_jsp.java]
The code of method _jspService(HttpServletRequest,
HttpServletResponse) is exceeding the 65535 bytes limit Stacktrace:
原因:JSP文件太大导致此错误。
解决方法:修改Tomcat安装目录下conf文件夹下的web.xml文件,搜索JspServlet,添加如下代码:
<init-param> <param-name>mappedfile</param-name> <param-value>false</param-value> </init-param>
如图:
参照博文:https://blog.csdn.net/qq_42922012/article/details/87779311