1、在build.gradle文件根節點中加入
bootRun { //開啟頁面熱加載功能 addResources = true }
2、在build.gradle文件dependencies下加入
compile("org.springframework.boot:spring-boot-devtools")
3.開啟IDEA自動編譯【這個和maven+idea一致】
4.registry 【這個和maven+idea一致】
windows:ctrl + alt + shift + /,mac: command + alt + shift + /
5.配置thymeleaf.cache為false