1原文地址:https://blog.csdn.net/java_zhaoyu/article/details/81940407
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.勾选有个