How to purge tomcat's cache when deploying a new .war file? Is there a config setting?

前端 未结 10 1007
忘掉有多难
忘掉有多难 2020-12-09 14:43

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.

When I make a change to my code

10条回答
  •  悲哀的现实
    2020-12-09 15:40

    Sounds like your class loader is not loading the servlet classes once they are updated. This might be fixed if you change your web.xml file which should prompt the server/container to re-deploy and reload the servlet classes. I guess add an empty line at the end of your web.xml and save it and then see if that fixes it. As i said this might fix it or might not.

    Good luck!

提交回复
热议问题