springboot+idea 热部署

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   

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

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

  

  

4setting -- System settings 

取消 save files on frame deactivation

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

原文地址:https://www.cnblogs.com/liuq1991/p/8488090.html