首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring-AOP 动态署理

2012-10-06 
Spring--AOP 动态代理applicationContext.xml:ProxySubjectBeforeAdvice.java:package com.sinosoft.modul

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("主体程序执行后 ***** 扔苹果胡 ") ;}}

热点排行