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 2022/02/25 07:35:20 UTC

[GitHub] [shardingsphere] 13612687938 opened a new issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

13612687938 opened a new issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631


   ## Question
   
           <!-- ShardingSphere -->
           <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
               <version>5.1.0</version>
           </dependency>
   
   when I have some datasource, how to set which is the default 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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zjcnb commented on issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631#issuecomment-1050642016


   @13612687938 Yeah.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] 13612687938 commented on issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

Posted by GitBox <gi...@apache.org>.
13612687938 commented on issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631#issuecomment-1050640787


   Perfect, I tried three data sources, first put the table to data source 3 and then request, successful, and then move the table to data source 2 and then request, successful.
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人: ***@***.***&gt;; 
   发送时间: 2022年2月25日(星期五) 下午4:15
   收件人: ***@***.***&gt;; 
   抄送: ***@***.***&gt;; ***@***.***&gt;; 
   主题: Re: [apache/shardingsphere] sharding jdbc 5.0.0(5.1.0) how to set a default datasource? (Issue #15631)
   
   
   
   
   
     
   @zjcnb In the actual development, not all tables need sub-database and sub-table, there is always a single table, how to solve it?
     
   ShardingSphere can according your table to find datasource if you a single table in one data source. But if you have same table in two  data source, the ShardingSphere can pick any one data source
    
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   Triage notifications on the go with GitHub Mobile for iOS or Android. 
   You are receiving this because you were mentioned.Message ID: ***@***.***&gt;


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zjcnb commented on issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631#issuecomment-1050615878


   @13612687938 Hi, I think the default data source are removed at 5.1.0


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zjcnb edited a comment on issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

Posted by GitBox <gi...@apache.org>.
zjcnb edited a comment on issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631#issuecomment-1050615878


   @13612687938 Hi, I think the default data source are removed at 5.0.0 and 5.1.0


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] 13612687938 closed issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

Posted by GitBox <gi...@apache.org>.
13612687938 closed issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631


   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] 13612687938 commented on issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

Posted by GitBox <gi...@apache.org>.
13612687938 commented on issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631#issuecomment-1050617075


   @zjcnb In the actual development, not all tables need sub-database and sub-table, there is always a single table, how to solve it?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zjcnb commented on issue #15631: sharding jdbc 5.0.0(5.1.0) how to set a default datasource?

Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #15631:
URL: https://github.com/apache/shardingsphere/issues/15631#issuecomment-1050630495


   > @zjcnb In the actual development, not all tables need sub-database and sub-table, there is always a single table, how to solve it?
   
   `ShardingSphere` can according your table to find datasource if you a single table in one data source. But if you have same table in two  data source, the `ShardingSphere` can pick any one data source


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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