intellij-ideaservletswarhotdeploy

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


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.


Solution

  • Let me describe the sequence of actions using screenshots:

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

    enter image description here

    1. Click the add icon, select 'artifact' and then select pizza_mvc:war exploded: enter image description here

    2. Modify 'On update action' and 'On frame diactivation': enter image description here

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