spring-boot基于yml文件方式整合shrding-jdbc,mybatis-plus实现分库分表和读写分离。
直接附上配置
本文主要讲解的是基于yml文件的方式实现分库分表和读写分离的实现。下一遍会讲解基于Config配置文件的方式实现分表分表和读写分离。
yml文件配置
#server
server:
port: 8081
#mybatis-plus
mybatis-plus:
typeEnumsPackage: com.modou.entity.enums
configuration:
cache-enabled: false
# log-impl: org.apache
原创
2020-09-29 20:53:30 ·
577 阅读 ·
0 评论