链接地址:https://blog.csdn.net/Wrcode/article/details/78924756

     jrebel服务启动版本:https://github.com/ilanyu/ReverseProxy/releases/tag/v1.3

    详细请看:https://blog.csdn.net/qq_27093465/article/details/79148498

原创 2017年12月28日 17:45:55
  • 448

本篇文章讲解jrebel 使用教程:

软件环境:eclipse(版本:Mars)、jrebel(版本:7.1.2)

1 安装

点击eclipse最上方菜单栏里的help-Eclipse Marketplace打开如下界面。在Find搜索框里输入jrebel查找,会看到Jrebel for Eclipse 7.1.4,然后点击install(因本人已安装7.1.2,所以显示Installed)。接下来与其他eclipse插件安装方法相同。


Jrebel 7.1.2 for Eclipse 安装使用教程(转载)



2 配置jrebel

点击eclipse最上方菜单栏里的Windows-Prefrences-JRebel打开如下界面(安装成功后可以看到JRebel)。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


点击JRebel--JRebel Configuration配置JRebel,会看到如下界面(不同版本jrebel可能会有差异)。**JRebel,本人使用的评估版(评估版可以免费试用14天)。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


点击Startup,选择Run via IDE,Servers选择你配置的tomcat

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


选择需要JRebel监测的项目

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


Advanced 配置按照下图。到此JRebel配置完成。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


3 使用

首先,一定要确保Project-Build Automatically已勾选(否则,文件修改后无法监测到变化)。启动项目后在Console看到如下图,说明JRebel监视成功。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


在NoticeController.java添加一个http 接口。可以看到添加接口后,控制台出现Reloading class 'com....controller.NoticeController'。


Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


接口添加完成后,使用postman访问刚才新加的接口。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


修改errorMessage保存,控制台再次出现Reloading class 'com....controller.NoticeController'。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)

使用postman访问可以看到返回值已经改变。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


本篇文章讲解jrebel 使用教程:

软件环境:eclipse(版本:Mars)、jrebel(版本:7.1.2)

1 安装

点击eclipse最上方菜单栏里的help-Eclipse Marketplace打开如下界面。在Find搜索框里输入jrebel查找,会看到Jrebel for Eclipse 7.1.4,然后点击install(因本人已安装7.1.2,所以显示Installed)。接下来与其他eclipse插件安装方法相同。


Jrebel 7.1.2 for Eclipse 安装使用教程(转载)



2 配置jrebel

点击eclipse最上方菜单栏里的Windows-Prefrences-JRebel打开如下界面(安装成功后可以看到JRebel)。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


点击JRebel--JRebel Configuration配置JRebel,会看到如下界面(不同版本jrebel可能会有差异)。**JRebel,本人使用的评估版(评估版可以免费试用14天)。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


点击Startup,选择Run via IDE,Servers选择你配置的tomcat

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


选择需要JRebel监测的项目

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


Advanced 配置按照下图。到此JRebel配置完成。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


3 使用

首先,一定要确保Project-Build Automatically已勾选(否则,文件修改后无法监测到变化)。启动项目后在Console看到如下图,说明JRebel监视成功。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


在NoticeController.java添加一个http 接口。可以看到添加接口后,控制台出现Reloading class 'com....controller.NoticeController'。


Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


接口添加完成后,使用postman访问刚才新加的接口。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


修改errorMessage保存,控制台再次出现Reloading class 'com....controller.NoticeController'。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)

使用postman访问可以看到返回值已经改变。

Jrebel 7.1.2 for Eclipse 安装使用教程(转载)


相关文章: