我如下配置TransactionInterceptor时不能进行回滚<bean id="tranInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="tranManage"/>
</property>
<property name="transactionAttributeSource">
<value>com.regest.biz.businessImp.RegestBizImp.setStudent=PROPAGATION_REQUIRED</value>
</property>
</bean>但是我做如下修改后,却能进行了回滚<bean id="tranInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="tranManage"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="setStudent">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
这是什么原因啊
我用的spring jar包是myeclipse5.1自带的,spring的版本应该是1.2.6
数据库采用的mysql 但是表的类型已经声明为 InnoDB
非常感谢您能回答我的问题 谢谢!
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="tranManage"/>
</property>
<property name="transactionAttributeSource">
<value>com.regest.biz.businessImp.RegestBizImp.setStudent=PROPAGATION_REQUIRED</value>
</property>
</bean>但是我做如下修改后,却能进行了回滚<bean id="tranInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="tranManage"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="setStudent">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
这是什么原因啊
我用的spring jar包是myeclipse5.1自带的,spring的版本应该是1.2.6
数据库采用的mysql 但是表的类型已经声明为 InnoDB
非常感谢您能回答我的问题 谢谢!
解决方案 »
- 急用,jbpm4.4如何获取Task
- http报文解析
- 在JSP页面显示WINDOWS资源管理器中CPU性能的效果
- 用过hibernate的请进
- 请教struts下使用javascript做级联菜单的问题(急问)
- 怎样把记录和.properties文件的记录进行比较?
- 急!关于javamail的问题(大散分!!!!!)
- 求jbuilder+struts开发实例!!!!!请大家帮帮忙啊!!
- 什么是 Inprise Application Server
- 这学期学java ee老师让我们做一个作品,而且还要美化什么的,自己学的也不深,希望高手给指点一下!
- 如何删除生成的XML的头中的standalone="no"?
- 随机密码生成问题
如果采用第二种格式,所有容器中的setStudent方法都会被事务包括啊
<bean id="tranInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="tranManage"/>
</property>
<property name="target" ref="BeanId">
<property name="transactionAttributes">
<props>
<prop key="setStudent">PROPAGATION_REQUIRED </prop>
</props>
</property>
</bean>指定某个类
声明这个Bean就可以了