1.添加jar包:
org.springframework.boot
spring-boot-devtools
runtime
true
2.在父工程加maven插件:
注意是你的父工程POM下
org.springframework.boot
spring-boot-maven-plugin
true
true
3.
4.
5.重启