Closed a4882567 closed 3 days ago
上门引入 非 springboo start 包,下面就开始用 spring boot start 配置
以下是快速入门文档内容
操作步骤 规则配置。 详情请参见用户手册。
引入 maven 依赖。
注意:请将 ${latest.release.version} 更改为实际的版本号。
创建 YAML 配置文件
databaseName (?):
mode:
dataSources:
rules:
props: key_1: value_1 key_2: value_2 以 spring boot 为例,编辑 application.properties。
spring.datasource.driver-class-name=org.apache.shardingsphere.driver.ShardingSphereDriver
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.
For English only, other language will not accept.
上门引入 非 springboo start 包,下面就开始用 spring boot start 配置
以下是快速入门文档内容
Question
操作步骤 规则配置。 详情请参见用户手册。
引入 maven 依赖。
注意:请将 ${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.