IDEA配置JRebel实现热部署

摘要:
再次使用JRebel启动SpringBoot项目并成功启动。如果修改代码,将鼠标点向IDEA窗口以外的区域会自动buildMrBirdnb

IDEA配置JRebel实现热部署

1.下载JRebel and XRebel for Intellij插件

在这里插入图片描述

2. 激活

在这里插入图片描述
请查看这个文章http://www.cicoding.cn/other/jrebel-activation/
激活后
开始配置自动编译
在这里插入图片描述

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项目
在这里插入图片描述

查看控制台日志

在这里插入图片描述

常见错误

jrebel.jar不兼容

在这里插入图片描述
JRebel-JVMTI [ERROR] You're using an incompatible 'jrebel.jar' with the JRebel Agent.
JRebel-JVMTI [FATAL] Please make sure that'C:UsersXXXAppDataRoamingJetBrainsIntelliJIdea2020.2pluginsjr-ide-idealibjrebel6jrebel.jar' is a copy of lib JRebel ZIP release Jrebel.jar.

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

因此请转到官方网站下载你指定IDEA版本的JRebel压缩包。然后解压缩压缩包以找到jrebel.jar,并将jrebel使用的jar包的路径更改为解压缩后的jrebel.jar的文件路径。
在这里插入图片描述
再次使用JRebel启动SpringBoot项目并成功启动。如果修改代码,将鼠标点向IDEA窗口以外的区域会自动build(或者手动按ctrl+shfit+F9)
在这里插入图片描述
在这里插入图片描述
MrBird nb

免责声明:文章转载自《IDEA配置JRebel实现热部署》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇AtCoder Regular Contest 102linux 查看系统资源使用信息的一些命令集合下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Intellij插件之JRebel

环境介绍:   Win7、JDK1.8、maven+jetty插件、SpringMVC、Intellij IDEA 2018.1.2 安装插件:   在线安装:     Settings --> Plugins --> Browse repositories... -->搜索栏搜索:JRebel --> 点击 Install 按钮...

IDEA 设置(中文乱码、svn、热部署、ideolog 、Jrebel )

目录 console中文乱码 idea 多个工程分别设置svn idea svn忽略版本控制 idea svn客户端 ideolog 插件配置 idea 热部署 Jrebel 插件激活和使用 # IDEA 设置 console中文乱码 settings设置UTF-8 tomcat 设置 -Dfile.encoding=utf-8/ 注意:...

IntelliJ IDEA 2017.3/2018.1 激活

传统的License Server方式已经无法注册IntelliJ IDEA2017.3的版本了。 http://idea.lanyus.com,这个网站有破解补丁和注册码两种方式,另外http://www.jb51.net/softs/588605.html这个网站也有激活工具以及使用说明。 我用的第二种方式,成功激活。 ***************...

IDEA的设置打不开,点了没反应解决办法

问题: IntelliJ IDEA的文件-设置打不开,点了没反应。 解决办法: 我是使用了汉化包,在IDEA安装目录lib下的resources_cn.jar。把它去掉用回英文d就可以了。 原文连接:https://blog.csdn.net/wjzhang5514/article/details/79813592...

配置IDEA Rust 环境

假设已经安装好IDEA Ultimate版本了。 1、安装 C++ Build Tools http://go.microsoft.com/fwlink/?LinkId=691126 2、安装 rust sdk https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-in...

idea打包jar的多种方式,用IDEA自带的打包形式,用IDEA自带的打包形式 用Maven插件maven-shade-plugin打包,用Maven插件maven-assembly-plugin打包

这里总结出用IDEA打包jar包的多种方式,以后的项目打包Jar包可以参考如下形式: 用IDEA自带的打包形式 用Maven插件maven-shade-plugin打包 用Maven插件maven-assembly-plugin打包 用IDEA自带的打包方式: 打开IDEA的file -> Project Structure,进入项目配置页面。如...