tomcat的jsp页面超过65535,导致500报错

错误信息

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 158 in the generated java file

The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit.

解决办法

找到tomcat的web.xml文件,搜索fork,找到如下代码


    jsp
    org.apache.jasper.servlet.JspServlet
    
        fork
        false
    
    
        xpoweredBy
        false
    
    3

增加配置


    mappedfile
    false

你可能感兴趣的:(tomcat的jsp页面超过65535,导致500报错)