Intellij IDEA 使用Spring-boot-devTools 没有生效 解决方法

1.添加依赖

dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-devtools</artifactId>
     <optional>true</optional>
</dependency>

2.

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

3.开启工具的自动编译

myeclipse中自动开启,但idea中需要点击setting>compiler>

4.开启run..auto

1.Shift+Ctrl+Alt+/,选择Registry

2.勾选有个

猜你喜欢

转载自blog.csdn.net/java_zhaoyu/article/details/81940407