各种Xml的配置

cglib包 做动态代理 直接代理的是类 而不是接口。 cglib 有三个通知 在4.0当中管他叫增强 在3.0当中叫通知 前置通知 环绕通知 (发生在目标行为之前和之后,能够更改方法的入参,也能够更改方法的出参,也能够更改方法的返回值,也能够阻止方法的运行) 后置通知 (发生在目标行为执行之后,方法绝对已经执行过了) 扫描包 xmlns:context="http://www.springframework.org/schema/context" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> aop (“启用切面注解”) xmlns:aop="http://www.springframework.org/schema/aop" http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> 启用声明式事务注解 xmlns:tx="http://www.springframework.org/schema/tx" http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

猜你喜欢

转载自www.cnblogs.com/wangchao422/p/9667893.html