亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

springmvc中如何同時使用兩個mongodb數(shù)據(jù)庫
PHPz
PHPz 2017-04-28 09:03:32
0
1
680

可以指定實體類對應的是哪個數(shù)據(jù)庫中的表嗎?

PHPz
PHPz

學習是最好的投資!

reply all(1)
滿天的星座

Configure two data sources, and use one of the following two solutions, which can also be used in combination:
1. Customize annotation classes, annotate specified methods in the service layer, and use spring aop to perform aspects to control the data source
2. Implementation Dynamically switch data sources and use spring aop for slicing to control the data source

Reference: http://www.boboface.com/wiki, DB reading and writing are separated in the wiki tree. As for how the program connects to mongodb, you can find out by yourself. This is just to give you ideas on how to solve your problem

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template