热部署Devtools

转载:https://www.cnblogs.com/liu2-/p/9118393.html

 

1 本工程

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>


2 父工程
pom.xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>

3 idea里 Setting里 compiler ADBC 打钩

 

 


4 开启热部署 ctrl+shift+Alt + / 打开选择1 register 两个选项打钩

 

 



5 重启idea









posted @ 2020-05-13 22:22  jack-jin  阅读(100)  评论(0)    收藏  举报