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

intellij idea spring boot热部署步骤

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

  1. <dependency>

  2. <groupId>org.springframework.boot</groupId>

  3. <artifactId>spring-boot-devtools</artifactId>

  4. </dependency>

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

勾选 Build Project Automatically. 

 

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

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

compiler.automake.allow.when.app.running

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

 

 

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

1.Edit Configurations > +[添加一个spring boot服务] > Configuration>Spring Boot 配置好热部署选项

>apply>ok

2.重启项目后接下来看这里

3.修改代码之后点击刷新按钮,刷新页面

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值