linghengqian commented on issue #33937: URL: https://github.com/apache/shardingsphere/issues/33937#issuecomment-2523390961
- Honestly, I still don't understand what you did. You haven't shared the git with the minimum reproducible unit test. If you don't use the spring boot starter of shardingsphere, then obviously no shardingsphere related spring beans will be registered. When you configure the datasource in the spring configuration file application.properties, you may create a proxy datasource of the shardingsphere jdbc driver through hikaricp. At this time, the injected datasource is obviously the datasource of hikaricp, and only the connection created through the datasource of the hikaricp proxy is the shardingsphere connection. - In this case, you can't access the datasource of shardingsphere at all, because the datasource of shardingsphere is in the driver manager inside openjdk, and the datasource of shardingsphere is only used to create the connection of shardingsphere. The connection is the first-class citizen. -- 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]
