1 增加

第一步在pom.xml文件中添加依赖

 

<!-- springboot 热部署 -->
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
  <scope>runtime</scope>

 


</dependency>

2:POM.xml:

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

3:开启自动编译的选项:

 

 

 

 

4:重启,最新版可以不用

posted on 2020-06-15 10:35  冷噫雪  阅读(263)  评论(0编辑  收藏  举报