ibatis对Mysql主从集群进行读写分离测试。
还是两个数据源:
SqlMapConfigW.xml 写
[html]view plaincopyprint?
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<!DOCTYPE sqlMapConfig
PUBLIC “-//ibatis.apache.org//DTD SQL Map Config 2.0//EN”
“http://ibatis.apache.org/dtd/sql-map-config-2.dtd”>
<sqlMapConfig&g[......]