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. 勾選以下選項