idea spring boot 热部署

idea spring boot 热部署

导入 s p r i n g − b o o t − d e v t o o l s \color{green}{spring-boot-devtools} springbootdevtools模块


	<!--自动更新代码和资源-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
            <scope>runtime</scope> <!--只在运行时使用-->
        </dependency>

配置自动重启

  1. 开启 自 动 构 建 项 目 \color{green}{自动构建项目} B u i l d p r o j e c t a u t o m a t i c a l l y \color{green}{Build project automatically} Buildprojectautomatically
    在这里插入图片描述
  2. 使用快捷建 C t r l + A l t + S h i f t + / \color{green}{Ctrl + Alt + Shift + /} Ctrl+Alt+Shift+/调出 Registry 窗口,勾选 $\color{green}{compiler.automake.allow.when.app.running} 选项。
    新 版 中 在 设 置 的 高 级 设 置 中 如 下 图 \color{red}{新版中在设置的高级设置中如下图}

使用jrebel插件

jrebel官网

  1. 安装插件
  2. 其他步骤
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值