idea 熱部署配置


1. 代碼熱部署配置(針對后台代碼熱部署)

1.1 pom.xml配置

<!--springboot自帶熱加載開發工具-->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

1.2 勾選如下內容

 

1.3 使用快捷鍵ctrl+shift+a 在搜索框輸入registry回車,勾選如下內容,並點擊closed

 

1.4關閉thymeleaf模板緩存並重啟服務

#關閉默認模板引擎緩存

spring.thymeleaf.cache=false


免責聲明!

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



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