各种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"> ================================================================================================= 启用声明式事务注解(@Transactional 给业务层加(就是接口的实现类加 )代替了切面 ) 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 =================================================================================================
posted @ 2018-09-18 11:22  砥砺奋进的几年  阅读(247)  评论(0编辑  收藏  举报