springboot項目idea熱部署的教程詳解
1.添加依賴
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
2.開啟自動編譯

3.ctrl+shifi+alt+/
點擊registry

選擇compiler autoMake allow when app running

接下來在你進行項目修改切換到瀏覽器時就會發(fā)現(xiàn)springboot重新加載了
4.排除熱部署范圍
將不需要熱部署的路徑定義到配置文件中
spring.devtools.restart.exclude=static/**,public/**
總結(jié)
到此這篇關(guān)于springboot項目idea熱部署的文章就介紹到這了,更多相關(guān)springboot項目idea熱部署內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
后端報TypeError:Cannot?read?properties?of?null?(reading?‘
這篇文章主要給大家介紹了關(guān)于后端報TypeError:Cannot?read?properties?of?null?(reading?‘xxx‘)錯誤的解決辦法,這個錯誤是開發(fā)中常見的錯誤之一,需要的朋友可以參考下2023-05-05
Java語言實現(xiàn)對MySql數(shù)據(jù)庫中數(shù)據(jù)的增刪改查操作的代碼
這篇文章主要介紹了Java語言實現(xiàn)對MySql數(shù)據(jù)庫中數(shù)據(jù)的增刪改查操作的代碼,實現(xiàn)了連接數(shù)據(jù)庫,和數(shù)據(jù)庫的增刪改查操作,有興趣的可以了解一下。2016-12-12

