我需要拦截对接口的所有方法调用的调用。但是,我已经研究过Java动态代理,它们对我没有帮助。我甚至不确定这是否可以实现,但我想确认一下。所以基本上假设我有一个接口,如下所示: public String getValue();我想拦截来自Foo的任何实现的对getValue()的所有调用。问题是我无法控制Foo的不同实现,因此我不能使用动态代理。谢
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.javaat org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:74)
at org.springframework.beans.TypeConverterSupport.convertIfNecessary(