亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Idea2022版本配置SpringBoot熱部署的教程

 更新時間:2022年04月15日 09:52:38   作者:haiqiang0225  
這篇文章主要介紹了Idea2022版本配置SpringBoot熱部署的教程,包括添加依賴及更改IDEA設(shè)置的方法,本文圖文實(shí)例相結(jié)合給大家介紹的非常詳細(xì),需要的朋友可以參考下

2022版本配置SpringBoot熱部署

網(wǎng)上搜到的以前版本的都是更改Registry...,勾選compiler.automake.allow.when.app.running,然后新版的IDEA的Registry...里沒有這個選項(xiàng),最后找到了解決方案,親測有效,鏈接如下:

ref: In IntelliJ 2021.2 compiler.automake.allow.when.app.running disappear. Unable to enable live reload under Spring boot

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)文章

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

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

    這篇文章主要介紹下國際化的配置及UserCache的配置及使用教程,感興趣的朋友參考下實(shí)現(xiàn)代碼吧
    2017-09-09
  • spring的父子容器及配置詳解

    spring的父子容器及配置詳解

    本篇文章主要介紹了spring的父子容器及配置詳解,詳細(xì)的介紹了spring父子容器的概念、使用場景和用法,有興趣的可以了解一下
    2018-01-01
  • Springboot安全框架整合SpringSecurity實(shí)現(xiàn)方式

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

    這篇文章主要介紹了Spring全家桶中Springboot安全框架整合SpringSecurity的實(shí)現(xiàn)方式,有需要的朋友可以借鑒參考下,希望可以有所幫助
    2021-09-09
  • 最新評論