IntelliJ 和 Tomcat....更改的文件不会被 Tomcat 自动识别 [英] IntelliJ and Tomcat....changed files are not automatically recognized by Tomcat
问题描述
我正在使用 Tomcat 运行 Intellij Ultimate 并部署了一场战争.一切都很好地部署到 tomcat 的 webapp 目录.
I am running Intellij Ultimate with Tomcat and deploy a war. Everything deploys fine to the webapp directory of tomcat.
当我更改像 xhtml 文件这样的文件时,tomcat 有没有办法自动获取该更改?截至目前,我需要从 Intellij 复制文件并将其复制到它在 tomcat Web 应用程序目录中所在的目录.我知道有些文件需要重新编译,但 xhtml 不是其中之一.
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.
推荐答案
让我用截图来描述操作的顺序:
Let me describe the sequence of actions using screenshots:
- 打开您的 Tomcat 运行/调试配置(运行 > 编辑配置)
点击添加图标,选择'artifact',然后选择
pizza_mvc:war purged
:
修改更新操作"和帧停用":
Modify 'On update action' and 'On frame diactivation':
每次要刷新资源时,请按
Everytime you want to refresh your resources, press <Ctrl> + F10
这篇关于IntelliJ 和 Tomcat....更改的文件不会被 Tomcat 自动识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!