IDEA配置热部署
- 添加如下依赖进项目得pom文件中
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
- 添加如下插件到父工程pom文件中
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
- 将红色选中的选项打勾
- 按 “ctrl + shift + Alt + /” 快捷键进入registry菜单中,之后对下面红色选中的两个选项打勾
- 重启IDEA后运行项目时进行修改就会自动重启项目