1.添加依赖
<!--集成热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
2.
打开File -> Settings,找到Compiler,勾选Build project automatically
3.
按两次Shift,输入Registry,进入将compiler.automake.allow.when.app.running勾选上
之后就可以运行起项目修改东西了,只需要点build就可以了,不需要停止重启,速度会快很多