步骤:
引入依赖
org.springframework.boot spring-boot-devtools
设置 idea 自动编译
file -> settings -> compiler -> Build project automatically 勾选
设置 允许idea在程序运行中 重启项目
快捷键 Ctrl + shift + alt + /
勾选 complier.automake.allow.when.app.runing
在项目中修改代码后 , 按Ctrl+S 就可以热部署了



