baomidou / dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务
https://www.kancloud.cn/tracy5546/dynamic-datasource/2264611
Apache License 2.0
4.75k stars 1.19k forks source link

多个数据源配置后,怎么配置整个事务的超时时间啊? #591

Closed e001432124 closed 10 months ago

e001432124 commented 1 year ago

Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。

Enviroment

JDK Version(required): 1.8

SpringBoot Version(required): 2.3.2

dynamic-datasource-spring-boot-starter Version(required):3.6.1

druid Version(optional):

Describe what happened

Expected Result:

Actual Result:

If there is an exception,or aop invalid,please attach the exception trace:

Just paste your stack trace here!

Steps to reproduce

ZPZP1 commented 1 year ago

事务随着方法执行完就自动提交或者回滚了,事务超时时间有什么场景会有一些潜在的问题吧,感觉弊大于利