baomidou / dynamic-datasource

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

如果我不用@DSTransactional注解,可以在代码里手动开启多数据源的事务吗 #668

Closed lhao-ux closed 2 months ago

lhao-ux commented 2 months ago

Enviroment

JDK Version(required): 17

SpringBoot Version(required): 3.2.2

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

druid Version(optional):

Describe what happened

您们好如果我不用@DSTransactional注解,可以在代码里手动开启多数据源的事务吗

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

huayanYu commented 2 months ago

可以,自己研究