當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
Springboot项目修改html后不需要重启---springboot项目的热部署
生活随笔
收集整理的這篇文章主要介紹了
Springboot项目修改html后不需要重启---springboot项目的热部署
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、spring-boot-devtools
在pom中直接引入依賴
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional>true</optional> </dependency>設置以下兩項(第一項如已設置直接設置第二項)
?
? ?1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,選中打勾 “Build project automatically” 。
?
2) 組合鍵:“Shift+Ctrl+Alt+/” ,選擇 “Registry” ,選中打勾 “compiler.automake.allow.when.app.running”?
轉載于:https://www.cnblogs.com/duwamish/p/9836000.html
總結
以上是生活随笔為你收集整理的Springboot项目修改html后不需要重启---springboot项目的热部署的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: nohup java -Dserver.
- 下一篇: 再次学习javascript中的參数传递