TongWeb 7 编译JSP出错 exceeding 65535 bytes limit, 需要在confi/default-web.xml中增加如下红色配置,
原因:mappedfile是否对每个输入行都用一条print语句来生成静态内容,以方便调试。缺省为true。这样做,只是为JSP每行都添加print语句,但是实际上,当文件达到一定程度,还是会发生错误,所以这个参数并不能100%解决问题,最根本的还是尽量减小JSP。
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>com.tongweb.web.jasper.servlet.ThanosJspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>development</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>mappedfile</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>