访问某个jsp页面时报错:Unable to compile class for JSP: An error occurred at
line: [173] in the generated java file:
[C:\Users\23769.IntelliJIdea2019.3\system\tomcat\Unnamed_epms_2\work\Catalina\localhost_\org\apache\jsp\aaa_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>

如图:
Unable to compile class for JSP:The code of method _jspService(HttpServletRequest, HttpServletRespon

参照博文:https://blog.csdn.net/qq_42922012/article/details/87779311

 

相关文章:

  • 2021-09-19
  • 2021-05-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-07-16
  • 2021-08-13
相关资源
相似解决方案