IDEA配置JRebel实现热部署方法

网友投稿 553 2023-02-20

IDEA配置JRebel实现热部署的方法

IDEA配置JRebel实现热部署的方法

1.-JRebel and XRebel for Intellij插件

2. 激活

3.勾选Build project automatically

ctrl + shift + alt + / ,选择Registry,勾上 Compiler autoMake allow when app running

4.Edit Configurations

on update action和 on frame deactivation改成 update classes and resources

5.打开JRebel tool

6.勾选你要热部署的应用

查看JRebel日志

使用JRebel启动springboot项目

查看guPHXK控制台日志

常见错误

jrebel.jar不兼容

JRebel-JVMTI [ERROR] You're using an incompatible 'jrebel.jar' with thhttp://e JRebel Agent.

JRebel-JVMTI [FATAL] Please make sure that'C:\Users\XXX\AppData\Roaming\JetBrains\IntelliJIdea2020.2\plugins\jr-ide-idea\lib\jrebel6\jrebel.jar' is a copy of lib JRebel ZIP release \Jrebel.jar.

这可能是因为你的IDEA可能不是最新版本,但jrebel的jar包为最新版导致的,

因此请转到官方网站-你指定IDEA版本的JRehttp://bel压缩包。然后解压缩压缩包以找到jrebel.jar,并将jrebel使用的jar包的路径更改为解压缩后的jrebel.jar的文件路径。

再次使用JRebel启动SpringBoot项目并成功启动。如果修改代码,将鼠标点向IDEA窗口以外的区域会自动build(或者手动按ctrl+shfit+F9)

MrBird nb

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:vue原生微信小程序开发(vue开发微信小程序实战)
下一篇:微信小程序跳转页面(微信小程序跳转页面不显现)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~