设置自动编译 File --> Settings --> Compiler --> Build project automatically. Ctrl+Alt+shift+/ 进入选择Register,设置 compiler.automake.allow.when.app.running. 编辑tomcat项目配置 这样就好了,当你修改了配置文件或者class文件之后,当IDEA失去焦点时,自动编译加载项目。 相关文章: 2021-05-03 2021-07-15 2021-12-25 2021-10-26 2022-12-23 2022-12-23 2021-05-01 2021-05-31