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 2021/06/28 08:04:19 UTC

[GitHub] [shardingsphere] future94 commented on issue #11039: Read/write separation does not obtain the data source

future94 commented on issue #11039:
URL: https://github.com/apache/shardingsphere/issues/11039#issuecomment-869465447


   > Hi @future94
   > Welcome to shardingsphere.
   > 
   > According to your information, you only need to use the readwrite-splitting scenario.
   > 
   > * question1
   >   `broadcast` is the configuration used with the sharding scene, you don't need it here.
   > * question2
   >   ds configuration is incorrect, and it is for `sharding` scene too.
   > 
   > please refer to another example:
   > https://github.com/apache/shardingsphere/blob/5.0.0-beta/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example/src/main/resources/application-readwrite-splitting.properties
   
   Hi @RaigorJiang 
   Thank you for your reply.
   
   I want to sharding and read/write the table, So I went to watch t_read_write configuration `spring.shardingsphere.rules.sharding.tables.t_read_write.actual-data-nodes=ds.t_read_write`, But it does not recognize the database resource DS. I'm watching this demo [https://github.com/apache/shardingsphere/blob/5.0.0-beta/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example/src/main/resources/application-sharding-readwrite-splitting.properties](https://github.com/apache/shardingsphere/blob/5.0.0-beta/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example/src/main/resources/application-sharding-readwrite-splitting.properties)
   
   ds configuration, What's the problem with configuration?Looking forward to your reply.


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