SpringBoot2.x 熱部署 DevTools

【pom】

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

【IDEA 配置】

1、setting->Build,Execution,Deployment->Compiler找到 Build Project Automatically
在這裏插入圖片描述

2、ctrl+shift+alt+/ 調出Maintenance(維護)控制檯,選擇Registry(登記)
在這裏插入圖片描述
3、勾選運行時自動編譯(auto-making when app running)
在這裏插入圖片描述


【推薦好文】

Spring Boot 五種熱部署方式

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章