zxfxpower
Results
2
comments of
zxfxpower
不用JRebel启动,获取的context就是null。
> > 不用JRebel启动,获取的context就是null。 > > 这个应该跟 JRebel 没关系,context 是在 arthas idea 里配好的。你看下来 ognl 命令里的 context 路径对不对。 试了好多次都是这样,用JRebel启动才行 工程:https://github.com/WangJi92/arthas-plugin-demo.git ognl setting:@com.wangji92.arthas.plugin.demo.common.ApplicationContextProvider@context 方法调用:ognl -x 3 '#springContext=@com.wangji92.arthas.plugin.demo.common.ApplicationContextProvider@context,#springContext.getBean("commonController").userOgnlX()' 另外运行环境如下: java 9 macos idea