idea2019.2+springboot2.2.1版本配置热部署
环境:
IDE:idea2019.2
项目框架:springboot2.2.1
配置热部署过程:
pom.xml:
<!--spring boot热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional> <!-- 这个需要为 true -->
</dependency>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork><!-- 没有该配置,devtools 不生效 -->
<addResources>true</addResources>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</plugin>
next:

next:


next:

next:

配置完成,重新启动。

浙公网安备 33010602011771号