KomachiSion commented on issue #2866: encrypt not work in 4.0.0-RC2-SNAPSHOT 
version
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2866#issuecomment-521079451
 
 
   Try to use this configuration:
   
   ```
   spring: 
     shardingsphere:
       props:
         sql:
           show: true
       datasource:
         names: ds
         ds:
           type: com.zaxxer.hikari.HikariDataSource
           driver-class-name: com.mysql.cj.jdbc.Driver
           jdbc-url: 
jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DB:test}?serverTimezone=Asia/Shanghai
           username: ${MYSQL_USER:test}
           password: ${MYSQL_PASSWORD:test}
           hikari:
             minimum-idle: 60
             maximum-pool-size: 60
             idle-timeout: 30000
             max-lifetime: 1800000
             connection-timeout: 30000
             pool-name: ExampleHikariCP
             connection-test-query: SELECT 1
       encrypt:
         tables:
           user_auth:
             columns:
               credential:
                 encryptor: example_encrypt
                 cipherColumn: credential
                 assistedQueryColumn: credential_assisted
         encryptors:
           example_encrypt:
             type: aes
             props:
               'aes.key.value': ${SHARDING_ENCRYPTOR_AES_PWD:123456}
       sharding:
         tables:
           party:
             actual-data-nodes: ds.party_$->{0..1}
             key-generator:
               column: party_id
               type: snowflake
             table-strategy:
               inline:
                 sharding-column: party_id
                 algorithm-expression: party_$->{party_id % 2}
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to