一、開啟idea自動make功能
1 - Enable Automake from the compiler
PRESS: CTRL SHIFT A
TYPE: make project automatically
PRESS: Enter
Enable Make Project automatically feature
2 - Enable Automake when the application is running
PRESS: CTRL SHIFT A
TYPE: Registry
兩步:
<dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-devtools</artifactid> <optional>true</optional> <!-- 这个需要为 true 热部署才有效 --> <scope>runtime</scope> </dependency>在IDEA中開啟自動編譯:
以上是Idea中Springboot熱部署無效怎麼解決的詳細內容。更多資訊請關注PHP中文網其他相關文章!