问题
I was wondering how to configure sharding in a spring config file. I took a look at this post http://krams915.blogspot.com.es/2012/02/mongodb-replica-sets-with-spring-data_9536.html and seems to work for a single replica set. But in case you have a sharding envrionment with several replica set, mongos instances, ..., is spring-data currently supporting this?
Regards.
来源:https://stackoverflow.com/questions/20647829/how-configuring-access-to-a-sharded-collection-in-spring-data-for-mongo