chengdedeng / perseus

:zap:database read and write separation of java
https://github.com/chengdedeng/perseus
120 stars 44 forks source link

在现有Spring + mybatis项目中使用,会自route业务sql到master或者slave吗 #3

Closed TreeZhiyuan closed 7 years ago

TreeZhiyuan commented 7 years ago

有尽量小的改动代码 完成这个方法的读写分离实现吗

chengdedeng commented 7 years ago

不需要改动任何代码,只需要改动配置即可,你可以查看我的测试代码和配置。