【SpringBoot】Spring boot 多数据源 no transaction is in progress EntityManager flush

在这里插入图片描述

1.概述

多数据源参考:《spring-boot学习》-09-spring boot+mybatis多数据源

根据这个 关于no transaction is in progress错误的解决方法 没解决。

http://www.voidcn.com/article/p-fvuppkxd-bty.html

代码中调用了

EntityManager.flush()

https://blog.csdn.net/lsh15846393847/article/details/90476168

https://www.cnblogs.com/zl520/p/10546281.html

EntityManager方法简介

springboot之jpa多数据源

原本是如下使用myibatis的DataSourceTransacti

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/112826315
今日推荐