当前位置: 代码迷 >> Java Web开发 >> spring3里HibernateTransactionManager配置有关问题
  详细解决方案

spring3里HibernateTransactionManager配置有关问题

热度:6737   发布时间:2013-02-25 21:19:53.0
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
  相关解决方案