Idea中开启springboot 项目热部署功能
1. 在pom.xml中添加 maven插件
<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>
2. 添加devtools 依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
3. 勾选以下配置
4. 使用 ctrl + shift + Alt + / 打开Maintenance 选择 Registry
5. 勾选以下选项