Apache ShardingSphere 中文文档 5.0.05.1.5 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Connection 接口 厂 和 规 则 配 置 对 象 获 取 ShardingSphereDataSource。该对象实现自 JDBC 的标准 DataSource 接口,可用于原生 JDBC 开发,或使用 JPA, MyBatis 等 ORM 类库。 DataSource dataSource = ShardingSphereDataSourceFactory. createDataSource(dataSourceMap D) 0] set /${your_zk_namespace}/status/storage_nodes/ disable/${your_schema_name.your_replica_datasource_name} DISABLED 第三方组件依赖 Apache ShardingSphere 在数据库治理模块使用 SPI 方式载入数据到配置中心和注册中心,进行实例熔 断和数据库禁用。目前,Apache0 码力 | 385 页 | 4.26 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0-alpha4.1.5 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 Connection 接口 厂 和 规 则 配 置 对 象 获 取 ShardingSphereDataSource。该对象实现自 JDBC 的标准 DataSource 接口,可用于原生 JDBC 开发,或使用 JPA, MyBatis 等 ORM 类库。 DataSource dataSource = ShardingSphereDataSourceFactory. createDataSource(dataSourceMap FROM t_order"; try ( HintManager hintManager = HintManager.getInstance(); Connection conn = dataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement(sql)) { hintManager.setData0 码力 | 301 页 | 3.44 MB | 1 年前3
Apache ShardingSphere 中文文档 5.2.04.1.6 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 Connection 接口 注意:请将 ${latest.release.version} 更改为实际的版本号。 3. 编辑 application.yml。 spring: shardingsphere: datasource: names: ds_0, ds_1 ds_0: type: com.zaxxer.hikari.HikariDataSource driverClassName: com.mysql YamlShardingSphereDataSourceFactory 工厂创建的 ShardingSphereDataSource 实现自 JDBC 的 标准接口 DataSource。 File yamlFile = // 指定 YAML 文件路径 DataSource dataSource = YamlShardingSphereDataSourceFactory. createDataSource(yamlFile);0 码力 | 449 页 | 5.85 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.15.1.8 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Connection 接口 则 配 置 对 象 获 取 ShardingSphereDataSource。该对象实现自 JDBC 的标准 DataSource 接口,可用于原生 JDBC 开发,或使用 JPA, Hibernate, MyBatis 等 ORM 类库。 DataSource dataSource = ShardingSphereDataSourceFactory. createDataSource(schemaName ShardingSphereDataSource 实现自 JDBC 的标准接 口 DataSource。 String schemaName = "foo_schema"; // 指定逻辑 Schema 名称 ModeConfiguration modeConfig = ... // 构建运行模式 MapDataSource> dataSourceMap = ... // 构建真实数据源 0 码力 | 409 页 | 4.47 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.05.1.8 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Connection 接口 则 配 置 对 象 获 取 ShardingSphereDataSource。该对象实现自 JDBC 的标准 DataSource 接口,可用于原生 JDBC 开发,或使用 JPA, Hibernate, MyBatis 等 ORM 类库。 DataSource dataSource = ShardingSphereDataSourceFactory. createDataSource(schemaName ShardingSphereDataSource 实现自 JDBC 的标准接 口 DataSource。 String schemaName = "foo_schema"; // 指定逻辑 Schema 名称 ModeConfiguration modeConfig = ... // 构建运行模式 MapDataSource> dataSourceMap = ... // 构建真实数据源 0 码力 | 406 页 | 4.40 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.25.1.9 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Connection 接口 注意:请将 ${latest.release.version} 更改为实际的版本号。 3. 编辑 application.yml。 spring: shardingsphere: datasource: names: ds_0, ds_1 ds_0: type: com.zaxxer.hikari.HikariDataSource driverClassName: com.mysql ShardingSphereDataSource 实现自 JDBC 的标准接 口 DataSource。 String schemaName = "foo_schema"; // 指定逻辑 Schema 名称 ModeConfiguration modeConfig = ... // 构建运行模式 MapDataSource> dataSourceMap = ... // 构建真实数据源 0 码力 | 446 页 | 4.67 MB | 1 年前3
Apache ShardingSphere v5.5.0 document9.1.5 Unsupported Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 DataSource Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 Connection Interface # Configuring DataSource Drivers spring.datasource.driver-class-name=org.apache.shardingsphere.driver. ShardingSphereDriver # Specify a YAML configuration file spring.datasource.url=jdbc:shardin YamlShardingSphereDataSourceFactory implements the standard JDBC DataSource interface. File yamlFile = // Indicate YAML file DataSource dataSource = YamlShardingSphereDataSourceFactory. createDataSource(yamlFile);0 码力 | 602 页 | 3.85 MB | 1 年前3
Apache ShardingSphere v5.5.0 中文文档9.1.5 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 v Connection 接口 application.properties。 # 配置 DataSource Driver spring.datasource.driver-class-name=org.apache.shardingsphere.driver. ShardingSphereDriver # 指定 YAML 配置文件 spring.datasource.url=jdbc:shardingsphere:classpath:xxx YamlShardingSphereDataSourceFactory 工厂创建的 ShardingSphereDataSource 实现自 JDBC 的 标准接口 DataSource。 File yamlFile = // 指定 YAML 文件路径 DataSource dataSource = YamlShardingSphereDataSourceFactory. createDataSource(yamlFile);0 码力 | 557 页 | 4.61 MB | 1 年前3
Apache ShardingSphere 中文文档 5.4.19.1.5 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Connection 接口 application.properties。 # 配置 DataSource Driver spring.datasource.driver-class-name=org.apache.shardingsphere.driver. ShardingSphereDriver # 指定 YAML 配置文件 spring.datasource.url=jdbc:shardingsphere:classpath:xxx YamlShardingSphereDataSourceFactory 工厂创建的 ShardingSphereDataSource 实现自 JDBC 的 标准接口 DataSource。 File yamlFile = // 指定 YAML 文件路径 DataSource dataSource = YamlShardingSphereDataSourceFactory. createDataSource(yamlFile);0 码力 | 530 页 | 4.49 MB | 1 年前3
Apache ShardingSphere 中文文档 5.3.29.1.5 不支持项 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 DataSource 接口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Connection 接口 application.properties。 # 配置 DataSource Driver spring.datasource.driver-class-name=org.apache.shardingsphere.driver. ShardingSphereDriver # 指定 YAML 配置文件 spring.datasource.url=jdbc:shardingsphere:classpath:xxx YamlShardingSphereDataSourceFactory 工厂创建的 ShardingSphereDataSource 实现自 JDBC 的 标准接口 DataSource。 File yamlFile = // 指定 YAML 文件路径 DataSource dataSource = YamlShardingSphereDataSourceFactory. createDataSource(yamlFile);0 码力 | 508 页 | 4.44 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













