Use multiple/different MongoTemplates with same Respository class

妖精的绣舞 提交于 2019-12-10 21:19:50

问题


I have a collection on three different mongo databases(same schema). So I have created a Repository for this. But is it possible that i can use different mongoTemplates(one for three different databases) but same repository class.

I can create three different repository classes(one for each database), But I don't want to do this because the schema is the same on all three.

Thanks

来源:https://stackoverflow.com/questions/38265818/use-multiple-different-mongotemplates-with-same-respository-class

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