You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/13 10:53:35 UTC

[GitHub] [shardingsphere] kimmking commented on issue #6336: how to get DataSource by DataSourceName

kimmking commented on issue #6336:
URL: https://github.com/apache/shardingsphere/issues/6336#issuecomment-657488468


   There are many different ways for retrieving DataSource by its name, according to where your codes are weaving in ss.
   For example, in spring/spring-boot env, you can inject bean by name. Sometimes we can get ds from SchemaContext-ShardingSphereSchema-dataSources Map.
   So, where did you want to get dataSource?
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org