pom.xml文件里引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<configuration>
<fork>true</fork>
<!--支持静态文件热部署-->
<addResources>true</addResources>
</configuration>
.properties中也要添加相应的配置
https://www.jianshu.com/writer#/notebooks/1334211/notes/25275733
网友评论