You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/08/15 02:01:19 UTC
[GitHub] [incubator-shardingsphere] KomachiSion edited a comment on issue
#2866: encrypt not work in 4.0.0-RC2-SNAPSHOT version
KomachiSion edited a comment on issue #2866: encrypt not work in 4.0.0-RC2-SNAPSHOT version
URL: https://github.com/apache/incubator-shardingsphere/issues/2866#issuecomment-521472441
Please change to this configuration and retry.
```
spring:
shardingsphere:
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
jdbc-url: jdbc:mysql://localhost:3306/demo_ds?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
username: root
password:
sharding:
default-data-source-name: ds
tables:
party:
actual-data-nodes: ds.party_$->{0..1}
table-strategy:
inline:
sharding-column: party_id
algorithm-expression: party_$->{party_id % 2}
key-generator:
column: party_id
type: SNOWFLAKE
props:
worker.id: 1
max.tolerate.time.difference.milliseconds: 100
encrypt-rule:
tables:
user_auth:
columns:
credential:
encryptor: example_encrypt
cipherColumn: credential
assistedQueryColumn: credential
encryptors:
example_encrypt:
type: aes
props:
'aes.key.value': 123456
props:
sql.show: true
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services