| 接口 | 说明 |
|---|---|
| DataSourceRegistryAware | |
| NamedDataSource |
为数据源提供 name, properties 属性
|
| SmartDataSource |
Extension of the
javax.sql.DataSource interface, to be
implemented by special DataSources that return JDBC Connections
in an unwrapped fashion. |
| 类 | 说明 |
|---|---|
| AbstractDataSource | |
| DataSourceRegistry |
这是一个支持 负载均衡的 DataSource 容器
|
| DataSources | |
| DelegatingNamedDataSource |
NamedDataSource 的一个默认实现
|
| SimpleDynamicDataSourceInvocationHandler |
apache-dbutil, spring-jdbc 等这类简单的工具,可以用这种方式来处理多数据源,甚至可以不用,完全自己来管理就行。
|
Copyright © 2021. All rights reserved.