一、添加POM依赖
<!-- 热部署模块 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <!-- 这个需要为 true 热部署才有效 --> </dependency>
二、IDEA配置
1、设置Idea Ctrl+Alt+S
2、 Ctrl+Shift+Alt+ /
<!-- 热部署模块 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <!-- 这个需要为 true 热部署才有效 --> </dependency>
1、设置Idea Ctrl+Alt+S
2、 Ctrl+Shift+Alt+ /
转载于:https://www.cnblogs.com/czbxdd/p/9202903.html