1 配置pom.xml

<!--spring-boot-devtools 热部署-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

2 配置idea 的  Compiler  勾选 Build project automatically   

springboot+idea 热部署

3 command+shift+a 搜索 registry  (windows下是ctrl+shift+a) (下图1)

  双击第一个选项, 打开的列表中 勾选 : compiler.automake.allow.when.app.running(下图2)

  springboot+idea 热部署

  springboot+idea 热部署

4setting -- System settings 

取消 save files on frame deactivation

勾选 save files automatically if application is idle for 30 sec.

springboot+idea 热部署

相关文章:

  • 2021-10-10
  • 2018-06-22
  • 2021-12-11
  • 2021-04-01
猜你喜欢
  • 2021-08-15
  • 2021-07-06
  • 2021-05-24
  • 2021-09-01
  • 2021-12-02
  • 2021-12-05
  • 2021-06-25
  • 2022-01-06
相关资源
相似解决方案