SpringBoot热部署
步骤一:在SpringBoot项目中找到pom.xml文件,添加以下内容:
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
<!--热部署配置-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.5.0</version>
</dependency>
步骤二:IDEA设置热部署配置
(1)File - - >Setings- - >Compiler,勾选Build project automaticall
(2)按Shift+Ctrl+Alt+/选择Registry
(3)勾选compiler.automake.allow.when.app.running