Arthas之在線編輯,熱更新代碼【版本3.1以上】

windows下java

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

 as.bat 進程IDweb

C:\Users\Administrator>as.bat 4184

啓動成功!!!windows

一、使用jad反編譯代碼編輯器

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

二、使用編輯器編譯代碼日誌

三、使用mc命令編譯修改後的UserController.javacode

$ mc /tmp/TestServlet -d /tmp

四、使用redefine命令,由於能夠熱更新代碼blog

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

編譯的時候,若是出錯了,能夠查看日誌進程

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

相關文章
相關標籤/搜索