异常:Transaction rolled back because it has been marked as rollback-only
原因:已经标记为rollback-only,但是后面的程序执行后又commit事务,抛出此异常。虽然都回滚,不影响正常业务。但是日志打印这种异常让人很难受。
解决办法:(核心思想:既然标识为rollback-only,就不要让事务再commit)
标签:Transaction,rollback,rolled,marked,only,because,been From: https://www.cnblogs.com/qianxiaoPro/p/16918938.html