部署Spring2.x的事物要注意什么啊? 我在工程中用的是Spring2.0德jar包,而且在配置文件的开始也加入了前缀。可是怎么部署不成功呢?但是用1.x的不熟方式没有问题?请经验大侠帮忙分析一下原因啊。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考下 spring2.5的<!-事务配置 --> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <!-- 查询方法只读 --> <tx:method name="find*" propagation="REQUIRED" read-only="true"/> <!-- 其它方法使用普通事务 --> <tx:method name="insert*" propagation="REQUIRED" /> <tx:method name="delete*" propagation="REQUIRED" /> <tx:method name="update*" propagation="REQUIRED" /> </tx:attributes> </tx:advice> <!-- aop切入 --> <aop:config> <!-- AspackJ语言 --> <aop:pointcut expression="execution(* org.ssh.service.*.*(..))" id="interCut"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="interCut"/> </aop:config> 强化java的书籍 hibernate映射文件,用list集合排序问题 java 启动Tomcat报错 web项目中如何读取src根目录下的XML文件 liferay ext开发如何实现多表关联 急~~ hibernate中有没类似jdbc的get(0)的功能 关于在mysql中,emoji表情存储问题 同时装上JBulider和eclipse可以嘛? jsp里的中文输入到EJB都变了乱码。请帮忙! 哪位做过java和SAP系统之间的接口? 精通EJB3.0的源代码,为什么老报错呢? 用hibernate生成数据库,怎样设置列的空默认值?
<!-事务配置 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<!-- 查询方法只读 -->
<tx:method name="find*" propagation="REQUIRED" read-only="true"/>
<!-- 其它方法使用普通事务 -->
<tx:method name="insert*" propagation="REQUIRED" />
<tx:method name="delete*" propagation="REQUIRED" />
<tx:method name="update*" propagation="REQUIRED" />
</tx:attributes>
</tx:advice>
<!-- aop切入 -->
<aop:config>
<!-- AspackJ语言 -->
<aop:pointcut expression="execution(* org.ssh.service.*.*(..))" id="interCut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="interCut"/>
</aop:config>