我收到以下错误
_jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
我知道使用 Apache Tomcat,tomcat 的 web.xml 中的以下标记可以修复该问题
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
...
<init-param>
<param-name>mappedfile</param-name>
<param-value>false</param-value>
</init-param>
...
</servlet>
但是我正在使用嵌入式tomcat和Spring Boot。 所以没有web.xml 我不确定此配置是否有效,或者是否有其他解决方法。
最佳答案
我知道这是一个迟到的答案,但我刚刚偶然发现了与 jsp、spring boot 和嵌入式 tomcat 相同的问题,下面是拯救我的简单解决方案。
在 spring boot "application.properties" 文件中添加以下属性并重新启动服务器,应该可以解决问题 -
server.servlet.jsp.init-parameters.mappedfile=false
关于jsp - Spring boot _jspService 超出 65535 字节限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48034458/