SpringBoot 项目热部署
步骤:
-
引入依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> -
设置 idea 自动编译


file -> settings -> compiler -> Build project automatically 勾选 -
设置 允许idea在程序运行中 重启项目
快捷键 Ctrl + shift + alt + /


勾选 complier.automake.allow.when.app.runing
在项目中修改代码后 , 按Ctrl+S 就可以热部署了










