SpringBoot熱重啟步驟
1.打開點擊pom.xml配置文件
2.找到配置文件節點
3.在節點中插入以下代碼
1
2
3
4
5
6
|
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional> true </optional> </dependency> |
4.點擊編輯器菜單欄view ->Tool Windows->Maven Projects 中查看是否添加成功,沒有自己建立建立項目并勾選上這個功能
5.編輯器配置熱重啟 File->Settings->搜索:Compiler ->勾選 Bulid project automatically
6.編輯器中 ctrl +shift +a 搜索 Registry
找到以下內容并在右邊打鉤
compiler.automake.allow.when.app.running √
然后點擊右下角close
重新運行下項目
總結
到此這篇關于Springboot教程之如何設置springboot熱重啟的文章就介紹到這了,更多相關設置springboot熱重啟內容請搜索服務器之家以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持服務器之家!
原文鏈接:https://blog.csdn.net/weixin_39553363/article/details/107219506