Idea2022版本配置SpringBoot熱部署的教程
2022版本配置SpringBoot熱部署
網(wǎng)上搜到的以前版本的都是更改Registry...
,勾選compiler.automake.allow.when.app.running
,然后新版的IDEA的Registry...
里沒有這個選項(xiàng),最后找到了解決方案,親測有效,鏈接如下:
1.IDEA版本
2. 添加依賴
- 如果只有一個項(xiàng)目,直接在
pom.xml
里添加下面所有的即可 - 父項(xiàng)目
pom.xml
在<project>
標(biāo)簽內(nèi)添加:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.6.4</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> <configuration> <fork>true</fork> <addResources>true</addResources> </configuration> </plugin> </plugins> </build>
子項(xiàng)目pom.xml
在<dependencie>
標(biāo)簽內(nèi)添加,注意要在父項(xiàng)目xml里定義版本:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency>
3.更改IDEA設(shè)置
preferences...
-> Compiler
preferences...
-> Advanced Settings
-> Allow auto-make to start even if developed application is currently running
到此這篇關(guān)于Idea2022版本配置SpringBoot熱部署的教程的文章就介紹到這了,更多相關(guān)idea配置springboot熱部署內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Mybatis中一條SQL使用兩個foreach的問題及解決
這篇文章主要介紹了Mybatis中一條SQL使用兩個foreach的問題及解決,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-02-02Springboot獲取前端反饋信息并存入數(shù)據(jù)庫的實(shí)現(xiàn)代碼
這篇文章主要介紹了Springboot獲取前端反饋信息并存入數(shù)據(jù)庫的實(shí)現(xiàn)代碼,本文通過實(shí)例代碼給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-03-03Springboot項(xiàng)目中內(nèi)嵌sqlite數(shù)據(jù)庫的配置流程
這篇文章主要介紹了Springboot項(xiàng)目中內(nèi)嵌sqlite數(shù)據(jù)庫的配置流程,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-06-06

spring security國際化及UserCache的配置和使用

Springboot安全框架整合SpringSecurity實(shí)現(xiàn)方式