sharding jdbc 2.x series Detailed see https://www.cnblogs.com/zhjh256/p/9221634.html.
Recently sharding jdbc xml arranged to switch from spring boot. First introduced depend on:
<dependency> <groupId>io.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId> <version>3.1.0</version> </dependency>
Https://shardingsphere.apache.org/document/legacy/3.x/document/en/manual/sharding-jdbc/configuration/config-spring-boot/ arranged to follow substantially the same configuration and xml .
reference:
3.1.0 Series: https: //shardingsphere.apache.org/document/legacy/3.x/document/en/manual/sharding-jdbc/configuration/config-spring-boot/
4.0 Series: https: //shardingsphere.apache.org/document/current/cn/manual/sharding-jdbc/configuration/config-spring-boot/