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 11:41:38 UTC

[GitHub] [shardingsphere] tony1991 edited a comment on issue #6336: how to get DataSource by DataSourceName

tony1991 edited a comment on issue #6336:
URL: https://github.com/apache/shardingsphere/issues/6336#issuecomment-657509185


   > 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?
   
   
   my config like this pic
   ![微信图片_20200713193730](https://user-images.githubusercontent.com/11584767/87300391-50a83080-c540-11ea-8e53-33037144ff81.jpg)
   
   I want get ds1 after ss init , can you give some examples?
   


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