日期:2014-05-16  浏览次数:20337 次

Spring+Hibernate框架下Mysql读写分离、主从数据库配置(下)

转载:http://lujia35.iteye.com/blog/969466

下面配置spring applicationContext.xml文件

Xml代码??收藏代码
  1. <?xml?version="1.0"?encoding="UTF-8"?>??
  2. <beans?xmlns="http://www.springframework.org/schema/beans"??
  3. ????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns:aop="http://www.springframework.org/schema/aop"??
  4. ????xmlns:tx="http://www.springframework.org/schema/tx"?xmlns