- 博客(0)
- 资源 (1)
- 收藏
- 关注
spring2.0声明式事务
spring声明式事务的配置
3. spring2.0配置事务
a) 将spring 1.2升级到spring2.0
i. 去掉spring1.2相关的包
ii. 添加spring2.0的jar包:spring.jar,aspecjrt.jar,aspectjweaver.jar
和cglib-nodep-2.1.3,jar
iii. 修改spring配置文件,增加常用命名空间
<xml? Version=”1.0” encoding=”utf-8”?>
<beans xmlns=”http://www.springframework.org/schema/beans”
xmlns:xsi=”http://w3.org/2001/XMLSchema-instance”
xmlns:aop=” http://www.springframework.org/schema/aop”
xmlns:tx=” http://www.springframework.org/schema/tx”
xsi:schemaLocation=” http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
</beans>
2011-11-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人