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.勾选有个

 

 



posted on 2019-09-20 13:49  龙-OSCAR  阅读(1018)  评论(0编辑  收藏  举报