Idea devtools热部署
一:导包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional><!--当前这个项目被继承之后,这个不向下传递-->
</dependency>
二:修改父pom里的配置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork> <!--如果没有该配置,热部署的devtools不生效-->
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
三:idea设置
Settings Build,execution,Deployment—Complier—
勾选 应用
ctrl + shift +a 搜索Registry,勾上 Compiler autoMake allow when app running