参考如下网站
http://www.cnblogs.com/sustudy/p/4174189.html
使用Spring实现读写分离( MySQL实现主从复制)
http://blog.csdn.net/jack85986370/article/details/51559232