tomcat报错请求的代码超过了65535字节限制
的有关信息介绍如下:公司运行的程序一直可以正常访问,已经运作。升级tomcat到8.5后,发现点击某些特定链接会报错
操作程序,从tomcat的日志文件里查到报错信息如下:
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.
这是因为tocmat请求的url地址过长导致的,修改tomcat的web.xml文件后,程序恢复正常
在:
下添加
重启tomat即可恢复正常