如何在部署新的.war文件时清除tomcat的缓存?有配置设置吗? [英] How to purge tomcat's cache when deploying a new .war file? Is there a config setting?
问题描述
我有一个简单的hello,我正在玩的世界servlet应用程序,并将其推送到VPS上的tomcat服务器。
I have a simple hello, world servlet application that I am just playing around with, and pushing it out to my tomcat server on a VPS.
当我制作时更改我的代码并部署它,tomcat不提供新发布的代码(即使再次启动服务后)。
When I make a change to my code, and deploy it, tomcat doesn't serve the newly published code (even after starting the service again).
我停止服务,然后推送新的war文件到/ webapps /,我也确保删除旧的爆炸文件夹。
I stop the service, then push the new war file to /webapps/, and I make sure to delete the old exploded folder also.
当我重新启动服务器时,它仍然服务于较旧的代码库。
When I re-start the server, it still serves the older codebase.
配置中是否有设置可以阻止此行为?
Is there a setting in the config to stop this behaviour?
此外,我还有哪些文件夹删除?请具体(文件夹和路径),因为我尝试删除一些并没有得到任何地方。
Also, what folders would I have to delete? Please be specific (folders and paths) as I have tried deleting some and havent' gotten anywhere.
推荐答案
您可以删除工作目录。
Are你确定它不是浏览器缓存问题吗?
Are you sure it's not a browser caching issue?
这篇关于如何在部署新的.war文件时清除tomcat的缓存?有配置设置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!