首页 > 数据库技术 > 详细

sharding jdbc(sphere) 3.1.0 spring boot配置

时间:2019-12-12 19:39:26      阅读:120      评论:0      收藏:0      [点我收藏+]

  sharding jdbc 2.x系列详解参见https://www.cnblogs.com/zhjh256/p/9221634.html。

  最近将sharding jdbc的配置从xml切换到了spring boot。首先引入依赖:

            <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/配置即可,基本上和xml配置是一样的。

参考:

  3.1.0系列:https://shardingsphere.apache.org/document/legacy/3.x/document/en/manual/sharding-jdbc/configuration/config-spring-boot/

  4.0系列:https://shardingsphere.apache.org/document/current/cn/manual/sharding-jdbc/configuration/config-spring-boot/

 

sharding jdbc(sphere) 3.1.0 spring boot配置

原文:https://www.cnblogs.com/zhjh256/p/12018352.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!