日期:2014-05-17 浏览次数:21017 次
CAspect.java里: @Pointcut("execution(* com..action.*Controller.*(..)) && args(request,response)") public void pointcutMVC(HttpServletRequest request, HttpServletResponse response){ } @Around("pointcutMVC(request,response)") public Object aroundMvc(ProceedingJoinPoint jp,HttpServletRequest request, HttpServletResponse response){ System.out.println("mvc aop arounding..."); .. } spring配置文件: <aop:aspectj-autoproxy > <aop:include name="CAspect"/> </aop:aspectj-autoproxy> <bean id="CAspect" class="com.axt.aop.CAspect" />