Commit 9b54926d authored by KomachiSion's avatar KomachiSion
Browse files

For #147, Add example for SpringBoot configuring method for orchestrationEncryptDataSource

parent c54dd8ce
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
#
# Copyright 2016-2018 shardingsphere.io.
# <p>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# </p>
#

spring.shardingsphere.orchestration.name=demo_spring_boot_ds_encrypt
spring.shardingsphere.orchestration.overwrite=true
spring.shardingsphere.orchestration.registry.type=zookeeper
spring.shardingsphere.orchestration.registry.server-lists=localhost:2181
spring.shardingsphere.orchestration.registry.namespace=orchestration-spring-boot-demo
+36 −0
Original line number Diff line number Diff line
#
# Copyright 2016-2018 shardingsphere.io.
# <p>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# </p>
#

spring.shardingsphere.datasource.name=ds_encrypt

spring.shardingsphere.datasource.ds_encrypt.type=com.zaxxer.hikari.HikariDataSource
spring.shardingsphere.datasource.ds_encrypt.driver-class-name=com.mysql.jdbc.Driver
spring.shardingsphere.datasource.ds_encrypt.jdbc-url=jdbc:mysql://localhost:3306/demo_ds
spring.shardingsphere.datasource.ds_encrypt.username=root
spring.shardingsphere.datasource.ds_encrypt.password=

spring.shardingsphere.encrypt.encryptors.order_encryptor.type=AES
spring.shardingsphere.encrypt.encryptors.order_encryptor.qualified-columns=t_order.status
spring.shardingsphere.encrypt.encryptors.order_encryptor.props.aes.key.value=123456

spring.shardingsphere.props.sql.show=true

spring.shardingsphere.orchestration.name=demo_spring_boot_ds_encrypt
spring.shardingsphere.orchestration.overwrite=true
spring.shardingsphere.orchestration.registry.type=zookeeper
spring.shardingsphere.orchestration.registry.server-lists=localhost:2181
spring.shardingsphere.orchestration.registry.namespace=orchestration-spring-boot-demo
+4 −1
Original line number Diff line number Diff line
@@ -13,3 +13,6 @@ spring.profiles.active=local-zookeeper-sharding-databases-tables

#spring.profiles.active=cloud-etcd-sharding-databases-tables
#spring.profiles.active=cloud-etcd-master-slave

#spring.profiles.active=local-zookeeper-encrypt
#spring.profiles.active=cloud-zookeeper-encrypt