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

Spring Boot 3.x 全新的熱部署配置方式詳解(IntelliJ IDEA 2023.1)

 更新時間:2023年07月12日 09:55:19   作者:江帥帥  
這篇文章主要介紹了Spring Boot 3.x 全新的熱部署配置方式(IntelliJ IDEA 2023.1),本文給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下

今天在暨大給學(xué)生上課的時候,發(fā)現(xiàn)在 Spring Boot 項目中配置熱部署的方式有一丟丟的改變,具體往下看。

最近還把 IDEA 更新到了 IntelliJ IDEA 2023.1 版本

在這里插入圖片描述

第一步,在 pom.xml 文件中添加依賴

<!--熱部署配置 -->
 <dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-devtools</artifactId>
     <!-- 表示依賴不向下傳遞 -->
     <optional>true</optional>
 </dependency>

第二步,配置 Build project automatically

如果你用的是 Windows 系統(tǒng),請按照 file -> settings -> Build, Execution, Deployment -> compiler 這個路徑找到 build project automatically 并勾上,最后 Apply 和 OK 即可;

如果你用的是 Mac 系統(tǒng),請按照 IntelliJ IDEA -> settings -> Build, Execution, Deployment -> compiler 這個路徑找到 build project automatically 并勾上,最后 Apply 和 OK 即可。

在這里插入圖片描述

第三步,開啟允許在運行中修改文件

如果你用的是 Windows 系統(tǒng),請按照 file -> settings -> Advanced Settings 這個路徑找到 Allow auto-make to start even if developed application is currently running 并勾上,最后 Apply 和 OK 即可;

如果你用的是 Mac 系統(tǒng),請按照 IntelliJ IDEA -> settings -> Advanced Settings 這個路徑找到 Allow auto-make to start even if developed application is currently running 并勾上,最后 Apply 和 OK 即可;

在這里插入圖片描述

到此這篇關(guān)于Spring Boot 3.x 全新的熱部署配置方式(IntelliJ IDEA 2023.1)的文章就介紹到這了,更多相關(guān)Spring Boot 3.x 熱部署配置內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論