77

Spring Profile和Mybatis进行多个数据源(H2和Mysql)的切换-JavaIT程序员的博客

 6 years ago
source link: http://blog.51cto.com/13932491/2177275
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
后台用到了数据库,本来理想情况下是用Mysql,但是为了做到开箱即用,也整合了一个嵌入式数据库H2。这里面就有个问题了,如何用一套代码,提供对Mysql和H2两种方案的支持?

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK