第一步:

设置IDEA开启项目自动编译,File--》Settings--》Compiler 勾选右边的Build Project automatically,如下图:

IDEA下开启热部署配置

 第二部:

开启项目运行时的自动make,组合键ctrl + shift + a(windows电脑),command+shift+alt+/(mac系统)搜索命令:registry--》 勾选compiler.automake.allow.when.app.running,如图:

IDEA下开启热部署配置

 IDEA下开启热部署配置

到此就结束了,重新运行项目以后,在代码里面修改并保存以后,就会看到控制台里面会自动重启项目。

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2021-05-15
  • 2021-11-19
  • 2022-12-23
  • 2022-01-13
  • 2021-12-25
  • 2021-07-15
猜你喜欢
  • 2021-12-05
  • 2021-05-22
  • 2021-11-11
  • 2021-08-08
  • 2021-08-10
  • 2022-12-23
相关资源
相似解决方案