How configuring access to a sharded collection in spring-data for mongo?

谁说我不能喝 提交于 2019-12-11 19:17:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!