tomcat - 对 web.xml 进行更改

标签 tomcat tomcat6

我想更改 web.xml 中的 checkInterval 设置。

它在我当前的 web.xml 中被注释掉了。我更新了 web.xml dpo 的哪一部分以便它被 tomcat 识别?

所以在 web.xml 中我有:

<!--   checkInterval       If development is false and checkInterval is   -->
  <!--                       greater than zero, background compilations are -->
  <!--                       enabled. checkInterval is the time in seconds  -->
  <!--                       between checks to see if a JSP page (and its   -->
  <!--                       dependent files) needs to  be recompiled. [0]  -->

如何取消对 checkInterval 参数的注释,以便它被 tomcat 识别?

最佳答案

下面是一个例子。请考虑默认值为 60。

<init-param>
        <param-name>checkInterval</param-name>
        <param-value>30</param-value>
</init-param>

关于tomcat - 对 web.xml 进行更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11014773/

相关文章:

javax.management.MalformedObjectException。属性值部分中的无效字符 ':'

java - 如何在 Tomcat 9 上使用 Log4J 配置应用程序日志记录?

java - Tomcat 6.0.35 Windows 32b 服务 useSystemProxies

java - JASIG CAS : How do I change where log files are written to?

java - Tomcat Ajax - 从哪里开始阅读?

java - org.apache.catalina.connector.CoyoteAdapter 服务严重 : An exception or error occurred in the container during the request processing

angular - 我们可以使用 HTTP 2 服务器推送存在于其他 CDN 中的 Assets 吗?

java - 重启嵌入式tomcat

java - 无法为 Weceem Grails CMS 设置 JAVA_OPTS 变量 -Dweceem.config.location

java - 如何访问 context.xml 参数?