Fórum

liferay新增aop问题,请高手帮忙

feng chen, modificado 10 Anos atrás.

liferay新增aop问题,请高手帮忙

New Member Mensagem: 1 Data de Entrada: 03/03/14 Postagens Recentes
大家好,liferay怎样新增一个aop,无论是jdk动态代理方式还是CGlib动态代理方式,还是通过实现ChainableMethodAdvise来实现,应该怎么做,试过jdk动态代理和CGlib动态代理这两种都不行,运行时报No MethodInvocation found: Check that an AOP invocation is in progress, and that the ExposeInvocationInterceptor is upfront in the interceptor chain. Specifically, note that advices with order HIGHEST_PRECEDENCE will execute before ExposeInvocationInterceptor!

通过实现ChainableMethodAdvise抽象类的方式,将实现类加入到base-spring.xml里面,又报实现类找不到,这个实现类应该放到哪个目录下,请高手指导一下,万分感谢。