IDEA进行SpringBoot热部署失败

pmsa
955
2020-07-21

出现这种情况,并不是热部署配置问题,其根本原因是因为Intellij IEDA默认情况下不会自动编译,需要对IDEA进行自动编译的设置

设置如下:

File->settings->Compiler->✔Build Project automatically->点击Apply
image.png

然后 Shift+Ctrl+Alt+/,选择Registry,勾选compiler.automake.allow.when.app.runging,点击close即可
image.png

如果还是不能解决,可尝试开启idea的热部署策略
顶部菜单- >Edit Configurations->SpringBoot插件->目标项目->勾选热更新
image.png

image.png

动物装饰