spring aop xml
2013-01-29 23:20
225 查看
applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> <bean id="personDao" class="aop.xml.PersonDaoImpl" /> <bean id="transaction" class="aop.xml.Transaction" /> <aop:config> <aop:pointcut expression="execution(* aop.xml.PersonDaoImpl.*(..))" id="perform" /> <aop:aspect ref="transaction"> <aop:before pointcut-ref="perform" method="beginTransaction" /> <aop:after-returning pointcut-ref="perform" method="commit" returning="" /> </aop:aspect> </aop:config> </beans>
相关文章推荐
- Spring AOP基础知识学习——XML配置
- spring AOP 之 xml 配置实现(附 Java 代码实例)
- Spring关于AOP配置举例(XML配置文件方式)
- Spring、XML配置AOP
- [5] Spring中的AOP操作(使用xml 配置文件的方式)
- spring2.5 xml的简单入门示例(aop)
- Spring基于xml配置bean AOP
- Spring_Spring与AOP_AspectJ基于XML的实现
- spring AOP XML
- applicationContext-common.xml 之spring tx:advice 和 aop:config 配置事务属性详解
- spring context.xmL配置数据库事务以及aop
- Spring的AOP使用xml配置
- Spring中AOP使用——配置xml方式
- Spring--Aop_xml
- Spring AOP @Aspect support XML
- Spring AOP的xml配置和注解配置
- Spring Aop(七)——基于XML配置的Spring Aop
- Spring AOP + AspectJ in XML configuration example
- Spring AOP+AspectJ在XML配置实例
- XML方式实现Spring的AOP