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