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? /
勾選
重啟項目即可生效。親測有效。