Apache ShardingSphere ElasticJob document Nov 01, 2023. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.2 Maven . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.3 ZooKeeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 Quick Start 5 4.1 Import Maven Dependency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4.2 Develop Job . Java 8 or above required. 3.2 Maven Maven 3.5.0 or above required. 3.3 ZooKeeper ZooKeeper 3.6.0 or above required. See details 4 4 Quick Start 4.1 Import Maven Dependencyorg 0 码力 | 101 页 | 1.53 MB | 1 年前3
Apache ShardingSphere ElasticJob 中文文档 2023 年 11 月 01 日. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.2 Maven . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.3 ZooKeeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 快速入门 5 4.1 引入 Maven 依赖 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4.2 作业开发 . . 注册中心管理 3 3 环境要求 3.1 Java 请使用 Java 8 及其以上版本。 3.2 Maven 请使用 Maven 3.5.0 及其以上版本。 3.3 ZooKeeper 请使用 ZooKeeper 3.6.0 及其以上版本。详情参见 4 4 快速入门 4.1 引入 Maven 依赖org.apache.shardingsphere 0 码力 | 98 页 | 1.97 MB | 1 年前3
Apache ShardingSphere v5.5.0 document1.4 Procedure 1. Rules configuration. Please refer to User Manual for more details. 2. Import Maven dependencyorg.apache.shardingsphere shardingsphere-jdbc which can omit the complexity of pro‐ gramming and simplify user configuration. Usage Import Maven Dependencyorg.apache.shardingsphere shardingsphere-jdbc timeToLiveSeconds: 60 Using the persistent repository requires additional introduction of the corresponding Maven depen‐ dencies. It is recommended to use:org.apache.shardingsphere 0 码力 | 602 页 | 3.85 MB | 1 年前3
2 Sharding-JDBC入门使用2 Sharding-JDBC入门使用 2.1不使用Spring 引入Maven依赖 基于Java编码的规则配置 Sharding-JDBC的分库分表通过规则配置描述,以下例子是根据user_id取模分库, 且根据 order_id取模分表的两库两表的配置。org.apache.shardingsphere preparedStatement.setInt(2, 1001); try (ResultSet rs = preparedStatement.executeQuery()) { 2.2使用Spring 引入Maven依赖 基于Spring boot的规则配置 while(rs.next()) { System.out.println(rs.getInt(1)); 1:3306/demo_ds_slave_1? serverTimezone=UTC&useSSL=false # 这里的要求合法的jdbc连接串即可,目前尚未兼容 MySQL 8.x,需要在maven编译时候,升级MySQL JDBC版本到5.1.46或者47版本(不建议升级到 JDBC的8.x系列版本,需要修改源代码,并且无法通过很多测试case) username: root #0 码力 | 12 页 | 325.38 KB | 1 年前3
Apache ShardingSphere v5.5.0 中文文档使用限制 目前仅支持 JAVA 语言 7.1.3 前提条件 开发环境需要具备 Java JRE 8 或更高版本。 7.1.4 操作步骤 1. 规则配置。 详情请参见用户手册。 2. 引入 maven 依赖。org.apache.shardingsphere shardingsphere-jdbc 配置文件支持配置内容超过 3MB。 YAML 配置是最常见的配置方式,可以省略编程的复杂度,简化用户配置。 52 Apache ShardingSphere document 使用步骤 引入 Maven 依赖org.apache.shardingsphere shardingsphere-jdbc server-lists: localhost:2181 retryIntervalMilliseconds: 500 timeToLiveSeconds: 60 使用持久化仓库需要额外引入对应的 Maven 依赖,推荐使用:org.apache.shardingsphere 9.1. ShardingSphere-JDBC 550 码力 | 557 页 | 4.61 MB | 1 年前3
Apache ShardingSphere 5.4.1 Document1.4 Procedure 1. Rules configuration. Please refer to User Manual for more details. 2. Import Maven dependencyorg.apache.shardingsphere shardingspher which can omit the complexity of pro‐ gramming and simplify user configuration. Usage Import Maven Dependency org.apache.shardingsphere shardingspher timeToLiveSeconds: 60 Using the persistent repository requires additional introduction of the corresponding Maven depen‐ dencies. It is recommended to use: org.apache.shardingsphere 0 码力 | 572 页 | 3.73 MB | 1 年前3
Apache ShardingSphere 中文文档 5.4.1使用限制 目前仅支持 JAVA 语言 7.1.3 前提条件 开发环境需要具备 Java JRE 8 或更高版本。 7.1.4 操作步骤 1. 规则配置。 详情请参见用户手册。 2. 引入 maven 依赖。org.apache.shardingsphere shardingsphere-jdbc-core 配置文件支持配置内容超过 3MB。 YAML 配置是最常见的配置方式,可以省略编程的复杂度,简化用户配置。 51 Apache ShardingSphere document 使用步骤 引入 Maven 依赖org.apache.shardingsphere shardingsphere-jdbc-core server-lists: localhost:2181 retryIntervalMilliseconds: 500 timeToLiveSeconds: 60 使用持久化仓库需要额外引入对应的 Maven 依赖,推荐使用:org.apache.shardingsphere 9.1. ShardingSphere-JDBC 540 码力 | 530 页 | 4.49 MB | 1 年前3
Apache ShardingSphere 5.2.0 Document1.4 Procedure 1. Rules configuration. Please refer to User Manual for more details. 2. Import Maven dependencyorg.apache.shardingsphere shardingspher which can omit the complexity of pro‐ gramming and simplify user configuration. Usage Import Maven Dependency org.apache.shardingsphere shardingspher classpath: prefix indicates that the configuration file is loaded from the classpath Procedure 1. Import Maven Dependency org.apache.shardingsphere shardingspher 0 码力 | 483 页 | 4.27 MB | 1 年前3
Apache ShardingSphere 5.2.1 Document1.4 Procedure 1. Rules configuration. Please refer to User Manual for more details. 2. Import Maven dependencyorg.apache.shardingsphere shardingspher mode, which can omit the complexity of pro‐ gramming and simplify user configuration. Usage Import Maven Dependency org.apache.shardingsphere shardingspher classpath: prefix indicates that the configuration file is loaded from the classpath Procedure 1. Import Maven Dependency org.apache.shardingsphere shardingspher 0 码力 | 523 页 | 4.51 MB | 1 年前3
Apache ShardingSphere 中文文档 5.2.0使用限制 目前仅支持 JAVA 语言 2.1.3 前提条件 开发环境需要具备 Java JRE 8 或更高版本。 2.1.4 操作步骤 1. 规则配置。 详情请参见用户手册。 2. 引入 maven 依赖。org.apache.shardingsphere shardingsphere-jdbc- YAML 格式。 YAML 配置是最常见的配置方式,可以省略编程的复杂度,简化用户配置。 49 Apache ShardingSphere document, v5.2.0 使用步骤 引入 Maven 依赖 org.apache.shardingsphere shardingsphere-jdbc-core yaml,配置文件格式与 YAML 配置一致 • 配置文件加载规则: – 无前缀表示从绝对路径加载配置文件 – classpath: 前缀表示从类路径中加载配置文件 操作步骤 1. 引入 Maven 依赖org.apache.shardingsphere shardingsphere-jdbc-core 0 码力 | 449 页 | 5.85 MB | 1 年前3
共 24 条
- 1
- 2
- 3













