IntelliJ IDEA2022 springboot 热部署 html
#pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency> <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--打开开关-->
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>#application.properties
spring.devtools.restart.enabled=true spring.devtools.restart.exclude=templates spring.devtools.restart.additional-paths=src/main/java
#idea设置
编辑器切换时自动部署。
原文地址:https://blog.csdn.net/find_6/article/details/128372228