设置自动编译

File --> Settings --> Compiler --> Build project automatically.
IDEA中设置tomcat工程热部署
Ctrl+Alt+shift+/ 进入选择Register,设置 compiler.automake.allow.when.app.running.
IDEA中设置tomcat工程热部署

编辑tomcat项目配置

IDEA中设置tomcat工程热部署
IDEA中设置tomcat工程热部署
IDEA中设置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
猜你喜欢
  • 2021-08-27
  • 2021-07-13
  • 2021-08-18
  • 2021-11-26
  • 2021-04-12
  • 2021-10-28
相关资源
相似解决方案