gpt4 book ai didi

java - JSP 页面永远缓存在 tomcat 中

转载 作者:行者123 更新时间:2023-11-28 22:34:35 24 4
gpt4 key购买 nike

我已经完成了这里提到的所有事情 jsp page is cached, can not change it, tomcat , 但仍然是同一页。我还应该考虑什么?

最佳答案

如果使用 <%@ include file="someother.jsp" %> , 我建议 touching父 JSP 以及包含的文件。

<%@ include file="file.jsp" %>在编译时包含文件。因此,除非您的父文件发生更改,否则不会强制重新编译。

如果您使用 <jsp:include />但是,包含是在运行时执行的,确保您始终获得新副本。

关于java - JSP 页面永远缓存在 tomcat 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8834292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com