[java两个数据库同步]SpringMVC配置双数据源实现一个java项目同时连接两个数据库的方法

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:aop="http://www.springframework.org/schema/aop"

xmlns:cache="http://www.springframework.org/schema/cache"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:jdbc="http://www.springframework.org/schema/jdbc"xmlns:jee="http://www.springframework.org/schema/jee"

xmlns:jms="http://www.springframework.org/schema/jms"xmlns:lang="http://www.springframework.org/schema/lang"

xmlns:mvc="http://www.springframework.org/schema/mvc"xmlns:oxm="http://www.springframework.org/schema/oxm"

xmlns:p="http://www.springframework.org/schema/p"xmlns:task="http://www.springframework.org/schema/task"

xmlns:tx="http://www.springframework.org/schema/tx"xmlns:util="http://www.springframework.org/schema/util"

xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-3.1.xsd

http://www.springframework.org/schema/cachehttp://www.springframework.org/schema/cache/spring-cache-3.1.xsd

http://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.1.xsd

http://www.springframework.org/schema/jdbchttp://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd

http://www.springframework.org/schema/jeehttp://www.springframework.org/schema/jee/spring-jee-3.1.xsd

http://www.springframework.org/schema/jmshttp://www.springframework.org/schema/jms/spring-jms-3.1.xsd

http://www.springframework.org/schema/langhttp://www.springframework.org/schema/lang/spring-lang-3.1.xsd

http://www.springframework.org/schema/mvchttp://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd

http://www.springframework.org/schema/oxmhttp://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd

http://www.springframework.org/schema/taskhttp://www.springframework.org/schema/task/spring-task-3.1.xsd

http://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-3.1.xsd

http://www.springframework.org/schema/utilhttp://www.springframework.org/schema/util/spring-util-3.1.xsd">

classpath:com/resource/config.properties

destroy-method="close">

destroy-method="close">

org.hibernate.dialect.MySQLDialect

org.springframework.orm.hibernate4.SpringSessionContext

false

true

create

com.po

[java两个数据库同步]SpringMVC配置双数据源实现一个java项目同时连接两个数据库的方法

上一篇:完整的ASP.NET 连接SQL Server 简单测试实例(含下载)


下一篇:[LintCode] Segment Tree Build II 建立线段树之二