SpringBoot添加“热部署”

热部署的好处

不用重新启动项目(项目小体现不出来)

配置热部署

在pom.xml文件里添加

 

 

 

<!--热部署-->
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
  <optional>true</optional>
</dependency>

 

 

<plugin>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-maven-plugin</artifactId>
  <configuration>
    <fork>true</fork>
  </configuration>
</plugin>

 

 

 

 

 

 

 

基本上没有文字,看完图片,正常人都懂了。

 

 

posted @ 2019-12-12 17:40  小猪会拱菜  阅读(293)  评论(0)    收藏  举报