设为首页 加入收藏

TOP

在spring中配置多数据库读取(二)
2014-11-24 07:25:23 来源: 作者: 【 】 浏览:7
Tags:spring 配置 数据库 读取
ttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">















mysql.jdbc.Driver"/>

















org.hibernate.dialect.MySQLDialect
true
true








p:sessionFactory-ref="sessionFactory"/>





这里连接的是MySQL数据库,如果是其他数据库,需要将DataSource1和DataSource2中的参数以及

hibernate.dialect做相应修改。


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇获取当前日期对应是星期几 下一篇数据库归档模式修改

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Libevent C++ 高并发 (2025-12-26 00:49:30)
·C++ dll 设计接口时 (2025-12-26 00:49:28)
·透彻理解 C 语言指针 (2025-12-26 00:22:52)
·C语言指针详解 (经典 (2025-12-26 00:22:49)
·C 指针 | 菜鸟教程 (2025-12-26 00:22:46)