{"id":20271103,"url":"https://github.com/zengfr/datasource-spring-boot-starter","last_synced_at":"2025-07-10T19:04:52.433Z","repository":{"id":86752397,"uuid":"172071012","full_name":"zengfr/datasource-spring-boot-starter","owner":"zengfr","description":"datasource-spring-boot-starter. AbstractRoutingDataSource dynamic datasource for springboot,Multiple \u0026Routing\u0026Sharding\u0026RW\u0026Master Slave","archived":false,"fork":false,"pushed_at":"2019-02-24T02:07:33.000Z","size":23,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T04:28:49.007Z","etag":null,"topics":["abstractroutingdatasource","datasource","dynamic","dynamic-datasource","multiple","sharding","shards","spring","springboot","zengfr"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zengfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-22T13:28:39.000Z","updated_at":"2020-05-19T07:37:17.000Z","dependencies_parsed_at":"2023-03-10T17:30:38.323Z","dependency_job_id":null,"html_url":"https://github.com/zengfr/datasource-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zengfr/datasource-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengfr%2Fdatasource-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengfr%2Fdatasource-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengfr%2Fdatasource-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengfr%2Fdatasource-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zengfr","download_url":"https://codeload.github.com/zengfr/datasource-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengfr%2Fdatasource-spring-boot-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264638275,"owners_count":23642138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abstractroutingdatasource","datasource","dynamic","dynamic-datasource","multiple","sharding","shards","spring","springboot","zengfr"],"created_at":"2024-11-14T12:36:34.239Z","updated_at":"2025-07-10T19:04:52.427Z","avatar_url":"https://github.com/zengfr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datasource-spring-boot-starter\ndatasource-spring-boot-starter. AbstractRoutingDataSource dynamic datasource for springboot,Multiple \u0026Routing\u0026Sharding\u0026RW\u0026Master/Slave\nhttps://github.com/zengfr/datasource-spring-boot-starter/\n\n[Repositories Central Sonatype Mvnrepository](https://mvnrepository.com/search?q=com.github.zengfr.project)\n```\nMaven Dependency:\nNot Use Spring Boot:\n\u003cdependency\u003e\n \u003cgroupId\u003ecom.github.zengfr.project\u003c/groupId\u003e\n \u003cartifactId\u003edatasource\u003c/artifactId\u003e\n \u003cversion\u003e0.0.1\u003c/version\u003e\n\u003cdependency\u003e\nUse Spring Boot :\n\u003cdependency\u003e\n \u003cgroupId\u003ecom.github.zengfr.project\u003c/groupId\u003e\n \u003cartifactId\u003edatasource-spring-boot-starter\u003c/artifactId\u003e\n \u003cversion\u003e0.0.1\u003c/version\u003e\n\u003cdependency\u003e\nGradle:\ncompile group: 'com.github.zengfr.project', name: 'datasource', version: '0.0.1'\ncompile group: 'com.github.zengfr.project', name: 'datasource-spring-boot-starter', version: '0.0.1'\n```\n[javadoc api](https://oss.sonatype.org/service/local/repositories/releases/archive/com/github/zengfr/project/datasource/0.0.1/datasource-0.0.1-javadoc.jar/!/index.html)\n```dbconfig.xml\n\u003cdbconfig\u003e\n\t\u003cdbsets\u003e\n\t\t\u003cdbset name=\"productdb\" provider=\"SqlServer\"\u003e\n\t\t\t\u003cdb name=\"productdbm\" dbtype=\"Master\" shardid=\"0\" /\u003e\n\t\t\t\u003cdb name=\"productdbs\" dbtype=\"Slave\" shardid=\"0\" /\u003e\n\t\t\u003c/dbset\u003e\n\t\t\u003cdbset name=\"orderdb\" provider=\"MySql\" shardstrategy=\"\"\u003e\n\t\t\t\u003cdb name=\"orderdb_S0_W\" dbtype=\"Master\" shardid=\"0\" /\u003e\n\t\t\t\u003cdb name=\"orderdb_S1_W\" dbtype=\"Master\" shardid=\"1\" /\u003e\n\t\t\t\u003cdb name=\"orderdb_S2_W\" dbtype=\"Master\" shardid=\"2\" /\u003e\n\t\t\t\u003cdb name=\"orderdb_S3_W\" dbtype=\"Master\" shardid=\"3\" /\u003e\n\t\t\t\u003cdb name=\"orderdb00_R\" dbtype=\"Slave\" shardid=\"0\" /\u003e\n\t\t\t\u003cdb name=\"orderdb01_R\" dbtype=\"Slave\" shardid=\"1\" /\u003e\n\t\t\t\u003cdb name=\"orderdb02_R\" dbtype=\"Slave\" shardid=\"2\" /\u003e\n\t\t\t\u003cdb name=\"orderdb03_R\" dbtype=\"Slave\" shardid=\"3\" /\u003e\n\t\t\t\u003cdb name=\"orderdb03_R1\" dbtype=\"Slave\" shardid=\"3\" /\u003e\n\t\t\t\u003cdb name=\"orderdb03_R2\" dbtype=\"Slave\" shardid=\"3\" /\u003e\n\t\t\u003c/dbset\u003e\n\t\u003c/dbsets\u003e\n\u003c/dbconfig\u003e \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengfr%2Fdatasource-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzengfr%2Fdatasource-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengfr%2Fdatasource-spring-boot-starter/lists"}