日期:2014-05-17  浏览次数:20695 次

spring3里HibernateTransactionManager配置问题
spring3配置里这些配置能否不写,去掉的话不能执行数据修改,说是在onlyread下的。。
但我不想要这些配置要怎么做,以前spring2里的都没写
<aop:advisor pointcut="execution(public * com.test.dao.*.*(..))" advice-ref="txAdvice" />
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED" />
<tx:method name="del*" propagation="REQUIRED" />
<tx:method name="update*" propagation="REQUIRED" />
</tx:attributes>
</tx:advice>

------解决方案--------------------
http://wenku.baidu.com/view/f7048181d4d8d15abe234e02.html