# dynamic-datasource-samples **Repository Path**: mr.jz/dynamic-datasource-samples ## Basic Information - **Project Name**: dynamic-datasource-samples - **Description**: dynamic-datasource-samples - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-02-16 - **Last Updated**: 2024-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 演示例子 所有数据库连接为h2数据库,仅供测试。 所有测试可直接跑,注意观察启动的日志。 - add-remove-datasource 动态添加删除数据源的使用示例 - all-datasource-sample 所有不同连接池使用示例(大乱炖,实际不建议) - druid-sample 集成mybatis和druid的使用示例 - jdbc-template-sample 集成原生jdbcTemplate的使用示例 - load-datasource-from-jdbc 通过数据库配置来启动数据源示例 - mybatis-sample 集成原生mybatis的使用示例 - mybatisplus2-sample 集成mybatisPlus2的使用示例 - mybatisplus3-sample 集成mybatisPlus3的使用示例 - name-pattern-sample 自定义切面的使用示例 - nest-sample 嵌套切换数据源使用示例 - quartz-sample 多数据源集成quartz示例 - shardingsphere-jdbc-4.x-spring-sample 集成 ShardingSphere JDBC Spring Boot Starter 4.1.1 使用示例, 不再维护, 参考 https://github.com/apache/shardingsphere/releases/tag/5.0.0-alpha - shardingsphere-jdbc-5.x-core-sample 集成 ShardingSphere JDBC Driver 5.3.1 使用示例 - shardingsphere-jdbc-5.x-spring-sample 集成 ShardingSphere JDBC Spring Boot Starter 5.2.1 使用示例, 不再维护, 参考 https://github.com/apache/shardingsphere/issues/22469 - spel-sample 动态从外部参数spel来切换数据源的使用示例 - tx-local-sample 本地事务示例项目★★★★★★必看★★★★★★ - tx-seata-sample 基于seata的分布式事务集成使用示例