當(dāng)前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
SpringBoot项目修改html后不即时编译
生活随笔
收集整理的這篇文章主要介紹了
SpringBoot项目修改html后不即时编译
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
SpringBoot項目修改html后不即時編譯
springboot templates 下的 html 修改后無法達(dá)到即時編譯的效果,搜索資料后記錄筆記。
原文地址:https://www.cnblogs.com/jiangbei/p/8439394.html
1、pom中引入依賴
<dependency>????<groupId>org.springframework.boot</groupId>
????<artifactId>spring-boot-devtools</artifactId>
????<optional>true</optional>
</dependency>
optional:默認(rèn)的值為false, 即子項目必須依賴,為true后,子項目非必須依賴。
2、設(shè)置一
IDE 左上角:
File -> Settings -> Build,Execution,Deplyment -> Compiler
選中打勾 Build project automatically
3、設(shè)置二
組合鍵:
Shift+Ctrl+Alt+/ ,選擇 Registry ,選中打勾 compiler.automake.allow.when.app.running
posted @ 2019-03-22 20:21 niceyoo 閱讀(...) 評論(...) 編輯 收藏
總結(jié)
以上是生活随笔為你收集整理的SpringBoot项目修改html后不即时编译的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 内容拾遗之字符串与数据结构
- 下一篇: JS字符串与二进制的相互转化