IntelliJ and WAR....changed files are not automatically recognized by server

hotdeploy, intellij-idea, servlets, war

Solution

Let me describe the sequence of actions using screenshots:

- Open your Tomcat Run/Debug configuration (Run > Edit Configurations)

Click the add icon, select 'artifact' and then select `pizza_mvc:war exploded`:

Modify 'On update action' and 'On frame diactivation':

Everytime you want to refresh your resources, press `<Ctrl> + F10`

Problem

I am running Intellij Ultimate with Tomcat and deploy a war. Everything deploys fine to the webapp directory of tomcat. When I change a file like an xhtml file, is there a way for tomcat to automatically pick up that change? As of right now I need to copy the file from Intellij and copy it to the directory of where it lives in the tomcat web app directory. I know there are certain files that will need a recompile, but xhtmls are not one of them.

Original source