apache / shardingsphere

Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database.
Apache License 2.0
19.83k stars 6.71k forks source link

快速入门文档有误 #33023

Closed a4882567 closed 3 days ago

a4882567 commented 3 days ago

上门引入 非 springboo start 包,下面就开始用 spring boot start 配置

以下是快速入门文档内容

Question

操作步骤 规则配置。 详情请参见用户手册

引入 maven 依赖。

org.apache.shardingsphere shardingsphere-jdbc ${latest.release.version}

注意:请将 ${latest.release.version} 更改为实际的版本号。

创建 YAML 配置文件

JDBC 逻辑库名称。在集群模式中,使用该参数来联通 ShardingSphere-JDBC 与 ShardingSphere-Proxy。

默认值:logic_db

databaseName (?):

mode:

dataSources:

rules:

props: key_1: value_1 key_2: value_2 以 spring boot 为例,编辑 application.properties。

配置 DataSource Driver

spring.datasource.driver-class-name=org.apache.shardingsphere.driver.ShardingSphereDriver

指定 YAML 配置文件

spring.datasource.url=jdbc:shardingsphere:classpath:xxx.yaml For English only, other languages will not accept.

Before asking a question, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will close it.

strongduanmu commented 3 days ago

For English only, other language will not accept.