arthas中ognl表达式的使用
文章目录
支持方法调用
xxx.doSomeSpecial()
支持类的静态方法调用和值访问,表达式的格式
@java.lang.String@format('foo %s', 'bar')
@tutorial.MyConstant@APP_NAME;
支持赋值操作和表达式串联
price=100,discount=0.8,calculatePrice()
getstatic com.xxl.job.core.executor.impl.XxlJobSpringExecutor applicationContext '#map=@new java.lang.HashMap(),
map.put("name",1)'
ognl'#map=#@java.util.LinkedHashMap@{ "foo" : "foo value", "bar" : "bar value" }'
arthas
创建对象 需要指定 -c classloader

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论