国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

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

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

PHPz
PHPz

學(xué)習(xí)是最好的投資!

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