intellij idea springboot热部署步骤[实测解决]

intellij idea spring boot热部署步骤

第一步: 在pom.xml增加下面依赖

  1. org.springframework.boot

  2. spring-boot-devtools

第二步: 打开idea ,File->Settings-> Build-Execution-Deployment -> Compiler

勾选 Build Project Automatically. 

intellij idea springboot热部署步骤[实测解决]_第1张图片

 

第三步: 按 Shift+Ctrl+A (windows,mac是 command+shift+A) 

将看到弹窗 Enter Action or option name,输入"registry",双击第一项"Registry..." ,会弹出另一个窗口,寻找

compiler.automake.allow.when.app.running

这一项,并勾选开启。然后关闭窗口。

 

intellij idea springboot热部署步骤[实测解决]_第2张图片

 

以上转载自:https://blog.csdn.net/dujianxiong/article/details/78957701
经过测试还是无法达到目的,于是寻找原因,解决 spring boot热部署步骤如下:

1.Edit Configurations > +[添加一个spring boot服务] > Configuration>Spring Boot 配置好热部署选项
intellij idea springboot热部署步骤[实测解决]_第3张图片
>apply>ok

2.重启项目后接下来看这里
intellij idea springboot热部署步骤[实测解决]_第4张图片
3.修改代码之后点击刷新按钮,刷新页面

你可能感兴趣的:(大前端开发)