1.在pop.xml文件中添加依赖
2.在application.properties文件中进行相应配置
#热部署生效 spring.devtools.restart.enabled=true #设置重启目录 spring.devtools.restart.additional-paths=src/main/java
3.选择File-Settings-Build, Execution, Deployment-Compiler,选中Build project automile-atically
4.在File-Settings-Advanced Settings下选择Allow auto-make to start even if developed application is currently running