1.依赖jar包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
2.通过maven启动测试
clean package spring-boot:run -Dmaven.test.skip=true
3.File --> Settings -->Build,Execution,Deployment --> Complier --> Build Project automatically(勾选上)
4.Alt + shift + Ctrl + / --> Registry --> compliler.automake.allow.when.app.running(勾选上)