Use Spring Data Couchbase to connect to different Couchbase clusters

可紊 提交于 2019-12-06 01:14:58

Could you elaborate on the use case that warranted the creation and connection to two separate clusters?

The best route here is still probably to define new Cluster, Bucket and CouchbaseTemplate beans, with custom names, in your existing AbstractCouchbaseConfiguration, and then use the configureRepositoryOperationsMapping() method in the conf. Basically like described in the doc about multiple buckets, but adding a second Cluster bean to the mix.

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