步骤一:添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
步骤二:File-settings
步骤三:Ctrl+Shift+Alt+/调出Maintenance界面
勾选中complier.automake.allow.when.app.running
完成之后在IntelliJ IDEA中修改代码,则项目会重新启动
注:在classpath路径下的静态资源或者视图模板等发生变化时,项目不会重启