热部署是spring boot的一大亮点功能,开发者不必因为改动一点代码就去频繁的关开服务。

1) 在pom文件中加载热部署依赖和插件

Idea+Spring boot 开启热部署

Idea+Spring boot 开启热部署

2)CTRL + SHIFT + A --> 查找make project automatically --> 选中 

Idea+Spring boot 开启热部署

3)CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running 

Idea+Spring boot 开启热部署

4)、最后重启idea

 

相关文章:

  • 2021-04-20
  • 2021-11-26
  • 2021-04-15
  • 2021-06-24
  • 2021-05-30
  • 2021-11-27
  • 2022-01-12
猜你喜欢
  • 2021-11-30
  • 2021-10-14
  • 2021-06-01
  • 2022-01-12
  • 2021-07-22
  • 2022-01-04
  • 2021-06-13
相关资源
相似解决方案