阅读量:2
在Debian系统下,JSP(Java Server Pages)的缓存策略可以通过修改Tomcat服务器的配置来实现。以下是一些常见的缓存策略设置方法:
1. 修改web.xml文件
你可以在你的Web应用程序的web.xml文件中设置缓存相关的参数。例如:
<web-app>
<jsp-config>
<jsp-property-group>
<url-pattern>*.jspurl-pattern>
<el-ignored>trueel-ignored>
<page-encoding>UTF-8page-encoding>
<scripting-invalid>falsescripting-invalid>
<include-prelude>/WEB-INF/jsp/common/header.jspfinclude-prelude>
<include-coda>/WEB-INF/jsp/common/footer.jspfinclude-coda>
<trim-directive-whitespaces>truetrim-directive-whitespaces>
<default-content-type>text/htmldefault-content-type>
<buffer>8kbbuffer>
<auto-flush>trueauto-flush>
<is-xml>falseis-xml>
<is-legacy-el-ignored>falseis-legacy-el-ignored>
<is-scripting-invalid>falseis-scripting-invalid>
<jsp-exception-on-undeclared-namespace>falsejsp-exception-on-undeclared-namespace>
<jsp-exception-on-undeclared-class>falsejsp-exception-on-undeclared-class>
<jsp-exception-on-undeclared-function>falsejsp-exception-on-undeclared-function>
<jsp-exception-on-undeclared-attribute>falsejsp-exception-on-undeclared-attribute>
<jsp-exception-on-undeclared-method>falsejsp-exception-on-undeclared-method>
<jsp-exception-on-undeclared-field>falsejsp-exception-on-undeclared-field>
<jsp-exception-on-undeclared-constructor>falsejsp-exception-on-undeclared-constructor>
<jsp-exception-on-undeclared-interface>falsejsp-exception-on-undeclared-interface>
<jsp-exception-on-undeclared-package>falsejsp-exception-on-undeclared-package>
<jsp-exception-on-undeclared-annotation>falsejsp-exception-on-undeclared-annotation>
<jsp-exception-on-undeclared-enum>falsejsp-exception-on-undeclared-enum>
<jsp-exception-on-undeclared-constant>falsejsp-exception-on-undeclared-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>falsejsp-exception-on-undeclared-annotation-class>
<jsp-exception-on-undeclared-annotation-interface>falsejsp-exception-on-undeclared-annotation-interface>
<jsp-exception-on-undeclared-annotation-package>falsejsp-exception-on-undeclared-annotation-package>
<jsp-exception-on-undeclared-annotation-enum>falsejsp-exception-on-undeclared-annotation-enum>
<jsp-exception-on-undeclared-annotation-constant>falsejsp-exception-on-undeclared-annotation-constant>
<jsp-exception-on-undeclared-annotation-member>falsejsp-exception-on-undeclared-annotation-member>
<jsp-exception-on-undeclared-annotation-element>falsejsp-exception-on-undeclared-annotation-element>
<jsp-exception-on-undeclared-annotation-method>falsejsp-exception-on-undeclared-annotation-method>
<jsp-exception-on-undeclared-annotation-class>false
以上就是关于“Debian系统下JSP的缓存策略如何设置”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm