Use sharding-jdbc to achieve read-write separation

Use sharding-jdbc to achieve read-write separation
insert image description here
1. The first step is to introduce the jar package

 <dependency>
      <groupId>org.apache.shardingsphere</groupId>
      <artifactId>sharding-jdbc-spring-boot-starter</artifactId

Guess you like

Origin blog.csdn.net/u011624157/article/details/129779202