热部署devtools(开发阶段时使用)
1.Adding devtools to your project
子模块的pom中
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
2.Adding plugin to your pom.xml
父工程的pom中
<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.Enabling automatic build
4.Update the value of
idea的快捷键,ctrl+shift+alt+/,选registry。