You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2021/06/07 03:00:20 UTC

[shardingsphere] branch master updated: fix datasource config error for #10584 (#10683)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new a9dccb8  fix datasource config error for #10584 (#10683)
a9dccb8 is described below

commit a9dccb85abe0ce270261cff9db104d201b72752d
Author: Raigor <ra...@gmail.com>
AuthorDate: Mon Jun 7 10:59:42 2021 +0800

    fix datasource config error for #10584 (#10683)
---
 .../resources/application-sharding-readwrite-splitting.properties | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example/src/main/resources/application-sharding-readwrite-splitting.properties b/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example/src/main/resources/application-sharding-readwrite-splitting.properties
index 00635d0..1f62ba7 100644
--- a/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example/src/main/resources/application-sharding-readwrite-splitting.properties
+++ b/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-boot-jpa-example/src/main/resources/application-sharding-readwrite-splitting.properties
@@ -38,21 +38,21 @@ spring.shardingsphere.datasource.write_ds_0_read_1.username=root
 spring.shardingsphere.datasource.write_ds_0_read_1.password=
 spring.shardingsphere.datasource.write_ds_0_read_1.max-active=16
 
-spring.shardingsphere.datasource.write_ds_1.jdbc-url=jdbc:mysql://localhost:3306/demo_write_ds_0?serverTimezone=UTC&useSSL=false
+spring.shardingsphere.datasource.write_ds_1.jdbc-url=jdbc:mysql://localhost:3306/demo_write_ds_1?serverTimezone=UTC&useSSL=false
 spring.shardingsphere.datasource.write_ds_1.type=com.zaxxer.hikari.HikariDataSource
 spring.shardingsphere.datasource.write_ds_1.driver-class-name=com.mysql.jdbc.Driver
 spring.shardingsphere.datasource.write_ds_1.username=root
 spring.shardingsphere.datasource.write_ds_1.password=
 spring.shardingsphere.datasource.write_ds_1.max-active=16
 
-spring.shardingsphere.datasource.write_ds_1_read_0.jdbc-url=jdbc:mysql://localhost:3306/demo_write_ds_0_read_0?serverTimezone=UTC&useSSL=false
+spring.shardingsphere.datasource.write_ds_1_read_0.jdbc-url=jdbc:mysql://localhost:3306/demo_write_ds_1_read_0?serverTimezone=UTC&useSSL=false
 spring.shardingsphere.datasource.write_ds_1_read_0.type=com.zaxxer.hikari.HikariDataSource
 spring.shardingsphere.datasource.write_ds_1_read_0.driver-class-name=com.mysql.jdbc.Driver
 spring.shardingsphere.datasource.write_ds_1_read_0.username=root
 spring.shardingsphere.datasource.write_ds_1_read_0.password=
 spring.shardingsphere.datasource.write_ds_1_read_0.max-active=16
 
-spring.shardingsphere.datasource.write_ds_1_read_1.jdbc-url=jdbc:mysql://localhost:3306/demo_write_ds_0_read_1?serverTimezone=UTC&useSSL=false
+spring.shardingsphere.datasource.write_ds_1_read_1.jdbc-url=jdbc:mysql://localhost:3306/demo_write_ds_1_read_1?serverTimezone=UTC&useSSL=false
 spring.shardingsphere.datasource.write_ds_1_read_1.type=com.zaxxer.hikari.HikariDataSource
 spring.shardingsphere.datasource.write_ds_1_read_1.driver-class-name=com.mysql.jdbc.Driver
 spring.shardingsphere.datasource.write_ds_1_read_1.username=root
@@ -85,3 +85,5 @@ spring.shardingsphere.rules.readwrite-splitting.data-sources.ds_0.write-data-sou
 spring.shardingsphere.rules.readwrite-splitting.data-sources.ds_0.read-data-source-names=write_ds_0_read_0, write_ds_0_read_1
 spring.shardingsphere.rules.readwrite-splitting.data-sources.ds_1.write-data-source-name=write_ds_1
 spring.shardingsphere.rules.readwrite-splitting.data-sources.ds_1.read-data-source-names=write_ds_1_read_0, write_ds_1_read_1
+
+spring.shardingsphere.props.sql-show=true