您的位置: 首页 > 文章 > Springboot 热部署(idea版) Springboot 热部署(idea版) 分类: 文章 • 2024-09-16 10:09:46 1.引入热部署依赖 使用devtools启动热部署,添加devtools库,在配置文件中把Spring devtools.restart.enabled设置为true: 2.勾选idea自动编译 settings—>Compiler—>勾选Build project automatically 3.允许应用在运行时启动自动编译 快捷键Ctrl+shift+a 输入Registry 勾选compiler.automake.allow.when.app.running 4.重新启动项目即可