1
我試圖攔截所有調用JSF IUComponents工作,但是,這並不工作:AOP @Around不與JSF +春
@Pointcut("execution(* javax.faces.component.UIComponent+.encode*(..))")
private void interceptor() { }
@Around("interceptor()")
public void aroundMethod(ProceedingJoinPoint joinPoint) {
System.out.println("******** Hello from Interceptor Method! **********");
}
然而,當我將切入點,這個工程的完美:
@Pointcut("execution(* com.hsa.business.*.*(..))")
private void interceptor() { }
@Around("interceptor()")
public void aroundMethod(ProceedingJoinPoint joinPoint) {
System.out.println("******** Hello from Interceptor Method! **********");
}
這是我在XML中透露出的信息:
<bean id="dummyAspect" class="com.hsa.security.aspectj.JSFComponentSecurityAspect" />
<aop:aspectj-autoproxy />
和:
<application>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</elresolver>
</application>
請幫忙...?