原因:

Switch this to "false" to let the transaction originator make the rollback decision. If a participating transaction fails with an exception, the caller can still decide to continue with a different path within the transaction. However, note that this will only work as long as all participating resources are capable of continuing towards a transaction commit even after a data access failure: This is generally not the case for a Hibernate Session, for example; neither is it for a sequence of JDBC insert/update/delete operations.

大意是:如果isGlobalRollbackOnParticipationFailure为false,则会让主事务决定回滚,如果当遇到exception加入事务失败时,调用者能继续在事务内决定是回滚还是继续。然而,要注意是那样做仅仅适用于在数据访问失败的情况下且只要所有操作事务能提交。

初步解决方案:

<bean id="transactionManager"class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
<property name="globalRollbackOnParticipationFailure" value="false" />
<!--指定此参数为false--> </bean>

  

最新文章

  1. (转)dp和dip是同一个单位
  2. Python之路(二)
  3. linux命令:ln
  4. 机器人学 —— 机器人视觉(Bundle Adjustment)
  5. java jvm学习笔记十一(访问控制器)
  6. sort-based shuffle的核心:org.apache.spark.util.collection.ExternalSorter
  7. htmlcss笔记--a
  8. Modify the average program to promote for intergers repeatedly.stop when a nagetive number is entere
  9. C++ 简单的入门语法
  10. Android Framework------之Keyguard 简单分析
  11. Could not open a connection to your authentication agent
  12. nginx服务器屏蔽上游错误码
  13. ON COMMIT PRESERVE ROWS
  14. Micropython教程之TPYBoardv102 DIY蓝牙智能小车实例
  15. 用Python实现支持向量机并处理Iris数据集
  16. ranger部署文档(记)
  17. 前端使用 validate , 根据条件进行动态的验证添加
  18. Luogu2993 FJOI2014 最短路径树问题 最短路树、长链剖分
  19. CentOS上yum方式安装配置LNMP
  20. [转帖]git命令参考手册

热门文章

  1. 100万DAU的app技术架构(简单理解)
  2. js类型问题
  3. 监督局部线性嵌入算法(SLLE算法)
  4. Find a Way (双bfs)
  5. @RequestParam 引发的编译问题
  6. 在apache hadoop2.6 上部署hive 并将hive数据源存储于Mysql
  7. Spring Cloud注册中心高可用搭建
  8. 高级UI晋升之自定义View实战(九)
  9. 【Java】 java判断字符串是否为空的方法总结
  10. el-form-item内容过多,及弹窗框宽度属性show-overflow-tooltip设置