为什么不选择spring-boot-devtools? 修改代码后重启需要时间, 服务上线gateway/client感知需要时间,说好的效率呢
找了一圈没有找到如何Jrebel如何设置,唯一找到一篇还是VIP专属???
自己摸索一晚成功配置,亲测有效,废话不多说,开始莽吧...
Eclipse安装Jrebel
感谢原作者: https://blog.csdn.net/qierkang
感谢原作者: https://blog.csdn.net/qierkang
感谢原作者: https://blog.csdn.net/qierkang
- 下载并安装 Jrebel , Eclipse-->Help-->Eclipse Marketplace (我选用的是最新版2019.2.2)
- 在线生成一个GUID https://www.guidgen.com/
- 打开Jrebel Avtivation面板, 选择Team Url (Connect to online licensing service)
- 输入: https://jrebel.qekang.com/{GUID} , 邮箱任意填写 例如: https://jrebel.qekang.com/37d26a8d-0661-454e-97da-8bc0c608a880 xyqierkang@163.com
- Mission accomplished!(如果失效刷新GUID替换就可以!)
Eclipse热部署姿势
tomcat/java就不说了,自行查找,只讲解SpringBoot / SpringCloud姿势.
- Open Perspective(右上角 Quick Access旁边) --> Jrebel Configuration --> Projects ,勾选需要热部署的项目(会生成rebel.xml, 有版本控制建议添加例外)
- Run --> Run Configuration --> 找到项目启动的选项 --> 右边Arguments --> VM arguments
- 填入: ${jrebel_args} , Apply ,退出
- 启动项目,出现以下内容,即配置成功
2019-12-04 21:37:47 JRebel: Directory 'your.code.path\target\classes' will be monitored for changes.
2019-12-04 21:37:47 JRebel: Directory 'your.code.path\target\classes' will be monitored for changes.
2019-12-04 21:37:47 JRebel: Directory 'your.code.path\target\classes' will be monitored for changes.
2019-12-04 21:37:47 JRebel: Directory 'your.code.path\target\classes' will be monitored for changes.
2019-12-04 21:37:47 JRebel: Directory 'your.code.path\target\classes' will be monitored for changes.
2019-12-04 21:37:51 JRebel: Starting logging to file: C:\Users\Administrator\.jrebel\jrebel.log
2019-12-04 21:37:51 JRebel:
2019-12-04 21:37:51 JRebel: #############################################################
2019-12-04 21:37:51 JRebel:
2019-12-04 21:37:51 JRebel: JRebel Agent 2019.2.2 (201911251026)
2019-12-04 21:37:51 JRebel: (c) Copyright 2007-2019 Perforce Software, Inc.
2019-12-04 21:37:51 JRebel:
2019-12-04 21:37:51 JRebel: Over the last 1 days JRebel prevented
2019-12-04 21:37:51 JRebel: at least 2 redeploys/restarts saving you about 0.1 hours.
2019-12-04 21:37:51 JRebel:
2019-12-04 21:37:51 JRebel: License acquired from License Server: https://jrebel.qekang.com
2019-12-04 21:37:51 JRebel:
2019-12-04 21:37:51 JRebel: Licensed to Administrator.
2019-12-04 21:37:51 JRebel:
2019-12-04 21:37:51 JRebel:
2019-12-04 21:37:51 JRebel: #############################################################

889

被折叠的 条评论
为什么被折叠?



