IDEA設置代碼熱更新


引入了devtools依賴,目的是能夠在配置、代碼更新時,能夠熱啟動項目,不用每次都手動停止,再啟動,不過在Idea中需要進行如下兩步,完成配置:

  1. Ctrl+Shift+Alt+/打開maintenance面板,選擇第一個registry, 勾選compiler.automake.allow.when.app.running保存;
  2. Ctrl+Alt+S, 打開配置面板,在File | Settings | Build, Execution, Deployment | Compiler下勾選Build project automatically
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
        <optional>true</optional>
    </dependency>


免責聲明!

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



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