Arthas之在线编辑,热更新代码【版本3.1以上】

windows下

C:\Users\Administrator>jps -l
10784 org.jetbrains.jps.cmdline.Launcher
17744
9076 sun.tools.jps.Jps
4184 com.fei.TestApplication

 as.bat 进程ID

C:\Users\Administrator>as.bat 4184

启动成功!!!

53064671485d735b4f83f0bacc56f7e2a28.jpg

1、使用jad反编译代码

$ jad --source-only com.ruoyi.web.TestServlet > /tmp/TestServlet

2、使用编辑器编译代码

62a030b4a65ff67a40ed2e4a5c04edad181.jpg

3、使用mc命令编译修改后的UserController.java

$ mc /tmp/TestServlet -d /tmp

4、使用redefine命令,因为可以热更新代码

$ redefine /tmp/com/ruoyi/web/TestServlet.class
redefine success, size: 1

编译的时候,如果出错了,可以查看日志

de6e8f8ac4b7c31f7554f4a1ca175949e2d.jpg

参考地址:https://yq.aliyun.com/articles/690240

转载于:https://my.oschina.net/u/3568600/blog/3071534

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值