2021 idea热部署
- 依赖
<!-- 热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency>
- 导入 maven 插件
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <!-- 热部署插件--> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.2.6.RELEASE</version> <configuration> <fork>true</fork> <addResources>true</addResources> </configuration> </plugin> </plugins> </build>
- 打开设置
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZuBnL2MDOwIzN4MTNx0iNykTNxYTN3EzNycDMyIDMy0SM1MDOxQjMvw1NwIjMwIzLcFTNzgTM0IzLcd2bsJ2Lc12bj5ycn9Gbi52YuIjMwIzZtl2Lc9CX6MHc0RHaiojIsJye.png)
-
2021 idea热部署