我试图使用Guice AOP进行性能分析:
@Override
protected void configure()
{
this.bindInterceptor(Matchers.any(), Matchers.annotatedWith(Profiled.class), new ProfileInterceptor());
}
它在本地工作正常,但是当我尝试部署到Websphere Application Server时,我得到了一个
java.lang.NoSuchMethodError: cnphi/base/profiling/ProfilingModule.bindInterceptor(Lcom/google/inject/matcher/Matcher;Lcom/google/inject/matcher/Matcher;[Lorg/aopalliance/intercept/MethodInterceptor;)
知道这里发生了什么吗?