Spring--AOP 动态代理
applicationContext.xml:
ProxySubjectBeforeAdvice.java:package com.sinosoft.module.springaop;import java.lang.reflect.Method;import org.springframework.aop.AfterReturningAdvice;public class ProxySubjectAfterAdvice implements AfterReturningAdvice {public void afterReturning(Object arg0, Method arg1, Object[] arg2,Object arg3) throws Throwable {System.out.println("主体程序执行后 ***** 扔苹果胡 ") ;}}