spring使用动态署理面向切面编程(AOP) xml

spring使用动态代理面向切面编程(AOP) xmlpackage com.test.aopimport org.aspectj.lang.ProceedingJoinP

spring使用动态代理面向切面编程(AOP) xml

package com.test.aop;import org.aspectj.lang.ProceedingJoinPoint;public class MyInterceptor3 {public void beforeMethod() {System.out.println("MyInterceptor3 before mothod!");}public void afterReturningMethod() {System.out.println("MyInterceptor3 afterReturning mothod!");}public void afterThrowingMethod() {System.out.println("MyInterceptor3 afterThrowing mothod!");}public void aroundMethod(ProceedingJoinPoint pjp) throws Throwable {System.out.println("MyInterceptor3 around start mothod!");pjp.proceed();System.out.println("MyInterceptor3 around end mothod!");}}

?