Skip to content

Commit ea810f0

Browse files
authored
Fix example (#22656)
1 parent 6e59b01 commit ea810f0

File tree

5 files changed

+3
-24
lines changed

5 files changed

+3
-24
lines changed

examples/shardingsphere-jdbc-example/single-feature-example/cluster-mode-example/cluster-mode-spring-boot-mybatis-example/src/main/resources/local-zookeeper-readwrite-splitting.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ mode:
2222
props:
2323
namespace: demo_spring_boot_readwrite_ds
2424
server-lists: localhost:2181
25-
26-
databaseName: sharding_databases_tables
2725

2826
dataSources:
2927
write_ds:

examples/shardingsphere-jdbc-example/single-feature-example/cluster-mode-example/cluster-mode-spring-boot-mybatis-example/src/main/resources/local-zookeeper-sharding-databases-tables.yaml

-15
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ mode:
2222
props:
2323
namespace: demo_spring_boot_ds_sharding
2424
server-lists: localhost:2181
25-
26-
databaseName: sharding_databases_tables
2725

2826
dataSources:
2927
ds_0:
@@ -87,16 +85,3 @@ rules:
8785
keyGenerators:
8886
snowflake:
8987
type: SNOWFLAKE
90-
- !ENCRYPT
91-
tables:
92-
t_order:
93-
columns:
94-
status:
95-
cipherColumn: status
96-
encryptorName: status-encryptor
97-
98-
encryptors:
99-
status-encryptor:
100-
type: AES
101-
props:
102-
aes-key-value: 123456

examples/shardingsphere-jdbc-example/single-feature-example/cluster-mode-example/cluster-mode-spring-namespace-mybatis-example/src/main/resources/META-INF/zookeeper/cloud/application-readwrite-splitting.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@
2020
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2121
xmlns:context="http://www.springframework.org/schema/context"
2222
xmlns:tx="http://www.springframework.org/schema/tx"
23-
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
2423
xsi:schemaLocation="http://www.springframework.org/schema/beans
2524
http://www.springframework.org/schema/beans/spring-beans.xsd
2625
http://www.springframework.org/schema/context
2726
http://www.springframework.org/schema/context/spring-context.xsd
2827
http://www.springframework.org/schema/tx
2928
http://www.springframework.org/schema/tx/spring-tx.xsd
30-
http://shardingsphere.apache.org/schema/shardingsphere/datasource http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd">
29+
">
3130
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
3231

3332
<bean id="readWriteSplittingDataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">

examples/shardingsphere-jdbc-example/single-feature-example/cluster-mode-example/cluster-mode-spring-namespace-mybatis-example/src/main/resources/META-INF/zookeeper/cloud/application-shadow.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@
2020
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2121
xmlns:context="http://www.springframework.org/schema/context"
2222
xmlns:tx="http://www.springframework.org/schema/tx"
23-
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
2423
xsi:schemaLocation="http://www.springframework.org/schema/beans
2524
http://www.springframework.org/schema/beans/spring-beans.xsd
2625
http://www.springframework.org/schema/context
2726
http://www.springframework.org/schema/context/spring-context.xsd
2827
http://www.springframework.org/schema/tx
2928
http://www.springframework.org/schema/tx/spring-tx.xsd
30-
http://shardingsphere.apache.org/schema/shardingsphere/datasource http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd">
29+
">
3130
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
3231

3332
<bean id="shadowDataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">

examples/shardingsphere-jdbc-example/single-feature-example/cluster-mode-example/cluster-mode-spring-namespace-mybatis-example/src/main/resources/META-INF/zookeeper/cloud/application-sharding-databases-tables.xml

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@
2020
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2121
xmlns:context="http://www.springframework.org/schema/context"
2222
xmlns:tx="http://www.springframework.org/schema/tx"
23-
xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
2423
xsi:schemaLocation="http://www.springframework.org/schema/beans
2524
http://www.springframework.org/schema/beans/spring-beans.xsd
2625
http://www.springframework.org/schema/context
2726
http://www.springframework.org/schema/context/spring-context.xsd
2827
http://www.springframework.org/schema/tx
2928
http://www.springframework.org/schema/tx/spring-tx.xsd
30-
http://shardingsphere.apache.org/schema/shardingsphere/datasource
31-
http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd">
29+
">
3230
<context:component-scan base-package="org.apache.shardingsphere.example.core.mybatis" />
3331

3432
<bean id="shardingDatabasesTablesDataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">

0 commit comments

Comments
 (0)