IDEA热部署
1. 添加devtools jar包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<option>true</option>
</dependency>
2. 添加maven插件(到父类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. 开启自动build选项
Settings --> Build,Execution,Deployment --> Compiler
ADBC:
4. Ctrl + shift + alt + /, 选择Registry
选中下面两个