IntelliJ IDEA spring-boot 热部署

转自:spring-boot项目(idea工具)热部署(亲测有效)

spring-boot项目热部署idea工具:

(1)、pom文件引入:都需要为true

<!-- 热部署模块 -->
<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-devtools</artifactId>
   <optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
</dependency>
<plugin>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-maven-plugin</artifactId>
   <configuration>
      <fork>true</fork>
   </configuration>
</plugin>

(2)、idea编译器设置file→setting→compiler


(3)idea设置

快捷键ctrl+alt+shift  /


勾选

重启项目即可生效。亲测有效。

发布了56 篇原创文章 · 获赞 67 · 访问量 13万+

猜你喜欢

转载自blog.csdn.net/leo187/article/details/86736206