<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>深蓝的blog &#187; 读写分离</title>
	<atom:link href="http://www.lanxinbase.com/?feed=rss2&#038;tag=%E8%AF%BB%E5%86%99%E5%88%86%E7%A6%BB" rel="self" type="application/rss+xml" />
	<link>http://www.lanxinbase.com</link>
	<description>记录日常生活</description>
	<lastBuildDate>Sat, 18 Apr 2026 07:10:07 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.3</generator>
	<item>
		<title>Spring使用sharding-jdbc实现读写分离或分库分表</title>
		<link>http://www.lanxinbase.com/?p=2131</link>
		<comments>http://www.lanxinbase.com/?p=2131#comments</comments>
		<pubDate>Wed, 27 Mar 2019 05:50:24 +0000</pubDate>
		<dc:creator><![CDATA[Alan]]></dc:creator>
				<category><![CDATA[1.服务端语言]]></category>
		<category><![CDATA[3.数据库相关]]></category>
		<category><![CDATA[Sharding-jdbc]]></category>
		<category><![CDATA[分库]]></category>
		<category><![CDATA[分表]]></category>
		<category><![CDATA[读写分离]]></category>

		<guid isPermaLink="false">http://www.lanxinbase.com/?p=2131</guid>
		<description><![CDATA[逻辑表与实际表之间的对应关系，均匀分布 使用sharding-jdbc来实现无论是读写分离，还是分库分表，都是 [&#8230;]]]></description>
		<wfw:commentRss>http://www.lanxinbase.com/?feed=rss2&#038;p=2131</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring+MyBatis实现数据库读写分离4种方案</title>
		<link>http://www.lanxinbase.com/?p=1825</link>
		<comments>http://www.lanxinbase.com/?p=1825#comments</comments>
		<pubDate>Tue, 10 Apr 2018 09:12:33 +0000</pubDate>
		<dc:creator><![CDATA[Alan]]></dc:creator>
				<category><![CDATA[1.服务端语言]]></category>
		<category><![CDATA[myBatis]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[读写分离]]></category>

		<guid isPermaLink="false">http://www.lanxinbase.com/?p=1825</guid>
		<description><![CDATA[通过MyBatis配置文件创建读写分离两个DataSource，每个SqlSessionFactoryBean对象的mapperLocations属性制定两个读写数据源的配置文件。将所有读的操作配置在读文件中，所有写的操作配置在写文件中。

优点：实现简单
缺点：维护麻烦，需要对原有的xml文件进行重新修改，不支持多读，不易扩展
实现方式]]></description>
		<wfw:commentRss>http://www.lanxinbase.com/?feed=rss2&#038;p=1825</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
