wangjiandahai commented on issue #24898: URL: https://github.com/apache/shardingsphere/issues/24898#issuecomment-1489721551
文档链接https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/special-api/transaction/java-api/5.3 ***@***.***,仍保留了TransactionTypeHolder。5.3 sharding-jdbc变为驱动方式,当如下这样使用时:spring boot datasource config:spring: datasource: driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver url: jdbc:shardingsphere:classpath:sharding.yamluse HikariDataSource。此时我们的业务代码中使用的是 HikariDataSource 而不是直接使用ShardingSphereDataSource。就不能混用事务管理模式了。HikariDataSource pool 会缓存 shardingSphereConnection,重复使用。连接的事务管理器在创建连接时根据当时情况已定了。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
