IDEA(2020.1)使用springboot熱部署


1.pom.xml文件中引入熱部署依賴

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

2.設置項目自動構建

設置路徑(快捷鍵Ctrl+Alt+S):File -> Settings -> Build, Execution, Deployment -> Compiler

3.允許項目啟動時自動構建

設置路徑:打開maintenance面板(快捷鍵Crtl+Alt+Shift+/) -> 選擇[1. Registry...] -> 勾選[compiler.automake.allow.when.app.running]


4.重新啟動IDEA(穩妥起見)

如果沒有生效,請嘗試清緩存刷新。Chrome瀏覽器快捷鍵Ctrl+F5


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM