tomcat解決加載JSP文件過大錯誤


當遇到多個Jsp include一起的時候加載時遇到如下錯誤:

  ErrorSEVERE: Servlet.service() for servlet jsp threw exception

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

  An error occurred at line: [136] in the generated java file: ****

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

解決:

  1.修改tomcat配置:打開tomcat路徑—conf—web.xml。
  2.直接搜索關鍵字‘
xpoweredBy’再加一個init-param初始化參數配置如下:
  

  3.保存退出,刪除eclipse中的tomcat配置重新添加即可。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM