首页 > 其他分享 >springboot:dynamic-datasource

springboot:dynamic-datasource

时间:2023-03-12 18:22:06浏览次数:62  
标签:springboot dynamic boot datasource https com starter

dynamic-datasource 可以动态的配置多数据源,配置简易,使用方便。

pom.xml配置

<!-- druid -->
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid-spring-boot-starter</artifactId>
    <version>1.1.18</version>
</dependency>

<!-- Mybatis Plus -->
<dependency>
    <groupId>com.baomidou</groupId>
    <artifactId>mybatis-plus-boot-starter</artifactId>
    <version>3.2.0</version>
</dependency>

<!-- dynamic-datasource -->
<dependency>
    <groupId>com.baomidou</groupId>
    <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
    <version>2.5.6</version>
</dependency>

参考1:https://blog.csdn.net/SakuraZzZzZzZz/article/details/118609473

参考2:https://blog.csdn.net/Tang_5253/article/details/101095855

参考3:https://zhuanlan.zhihu.com/p/371442684

标签:springboot,dynamic,boot,datasource,https,com,starter
From: https://www.cnblogs.com/2008nmj/p/17208697.html

相关文章