1.参考资料
gitup:https://github.com/alibaba/jvm-sandbox
2.介绍
JVM-SANDBOX(沙箱)实现了一种在不重启、不侵入目标JVM应用的AOP解决方案。
3.在java中的使用
1.引入依赖
<dependency>
<groupId>com.alibaba.jvm.sandbox</groupId>
<artifactId>sandbox-module-starter</artifactId>
<version>1.2.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
2.编写测试demo
个人觉得阿里文档写的挺不错的,贴上链接:https://github.com/alibaba/jvm-sandbox/wiki/FIRST-MODULE
等工作闲下来后,也会补上完整的日志demo
网友评论