摘要: 1、 声明式事务处理: 在spring中对事务进行管理时,可以显示地进行事务处理的定义: Java代码 //给事务添加的属性 <tx:adviceid=”txAdvice”transaction-manager=”transactionManager”> <tx:attributes> //propagation表示的是事务的... 阅读全文
posted @ 2009-11-10 14:41 XGU_Winner 阅读(525) 评论(0) 推荐(0)
摘要: 一、启动Spring2.5监听,让web项目整合spring在web.xml中配置,代码如下:<context-param><param-name>contextConfigLocation</param-name><param-value>classpath:beans.xml </param-value></context-pa... 阅读全文
posted @ 2009-11-10 11:34 XGU_Winner 阅读(462) 评论(0) 推荐(0)