问题描述
- SSH声明式事物管理不起作用为什么
-
在线求教
各位前辈帮我看一下我的声明式事物管理那里出错了,为什么不起作用com/transaction/pojo/Role.hbm.xml
</list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect"> org.hibernate.dialect.MySQLDialect </prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.current_session_context_class">thread</prop> </props> </property> </bean> <bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory" /> </bean> <aop:config> <aop:pointcut id="bussinessService" expression="execution(public * com.transaction.service..*.*(..))" /> <aop:advisor pointcut-ref="bussinessService" advice-ref="txAdvice" /> </aop:config> <tx:advice id="txAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="getUser" read-only="true" /> <tx:method name="save*" propagation="REQUIRED"/> </tx:attributes> </tx:advice>
Service所在包路径package com.transaction.service.impl.TestServiceImpl
时间: 2024-09-16 13:33:28