jukai5501 commented on issue #2866: encrypt not work in 4.0.0-RC2-SNAPSHOT 
version
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2866#issuecomment-521083153
 
 
   Hi!
   
        This configuration did not work.
   
   
   
        Failed to bind properties under 
'spring.shardingsphere.encrypt.tables.userauth.columns.encryptor' to 
org.apache.shardingsphere.core.yaml.config.encrypt.YamlEncryptColumnRuleConfiguration:
 
   
         Property: 
spring.shardingsphere.encrypt.tables.userauth.columns.encryptor 
            Value: example_encrypt 
            Origin: class path resource [application.yml]:64:24 
            Reason: No converter found capable of converting from type 
[java.lang.String] to type 
[org.apache.shardingsphere.core.yaml.config.encrypt.YamlEncryptColumnRuleConfiguration]
   
        
   
   
   > 在 2019年8月14日,10:35,杨翊 Sion Yang <notificati...@github.com> 写道:
   > 
   > 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}
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub 
<https://github.com/apache/incubator-shardingsphere/issues/2866?email_source=notifications&email_token=AF4QKPHY44LOVLGVD5MQLFLQENVP3A5CNFSM4ILKET3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4HQVGY#issuecomment-521079451>,
 or mute the thread 
<https://github.com/notifications/unsubscribe-auth/AF4QKPANZPIC7ALYDBW2HWLQENVP3ANCNFSM4ILKET3A>.
   > 
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to