首先要在eclipse 中启用

利用 jrebel 热部署\远程调试\远程热部署 springboot项目 服务器上的代码

启用以后在 resource 中生成了 rebel-remote.xml

然后build,把生成的jar包放到服务器上.

然后用下面的命令启动

java
-agentpath:./lib/libjrebel64.so  -Drebel.remoting_plugin=true -Drebel.remoting_port=12345  #热部署
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 #远程调试
-jar target.jar # springboot项目

加上以上参数,即可以实现 远程断点调试,并且 本地代码修改了,立即同步至服务器上.这样我们本地代码修改了,就不必重新编译,然后再拷贝到服务器上重启才能生效了,为开发提供了很大的便利.

再分享一个jrebel激活网址:

http://139.199.89.239:1008/88414687-3b91-4286-89ba-2dc813b107ce

相关文章:

  • 2022-02-28
  • 2022-01-08
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-08-05
  • 2021-11-02
  • 2022-12-23
猜你喜欢
  • 2021-07-14
  • 2021-10-28
  • 2021-06-28
  • 2021-11-23
  • 2021-07-18
  • 2021-11-03
  • 2022-12-23
相关资源
相似解决方案