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/09/05 02:22:33 UTC
[GitHub] [incubator-shardingsphere] xiyelife commented on issue #2923: when
using EncryptPreparedStatement to savebatch occours error
xiyelife commented on issue #2923: when using EncryptPreparedStatement to savebatch occours error
URL: https://github.com/apache/incubator-shardingsphere/issues/2923#issuecomment-528167818
I have the same problem,only use encryptDataSource by mybatis.
when mybatis prepare the statement, it will set the queryTimeout ,but the preparedStatement does not created at this time, and the NPE occured!
![image](https://user-images.githubusercontent.com/8772975/64306815-944c1880-cfc6-11e9-9fad-b9d104cdd240.png)
![image](https://user-images.githubusercontent.com/8772975/64306727-58b14e80-cfc6-11e9-9006-b0864eeabe54.png)
![image](https://user-images.githubusercontent.com/8772975/64306664-26075600-cfc6-11e9-96aa-0f269d5bf719.png)
here is my config:
#user_info.name 加密
spring.shardingsphere.encrypt.encryptors.name_encryptor.type=aes
spring.shardingsphere.encrypt.tables.user_info.columns.name.plainColumn=name
spring.shardingsphere.encrypt.tables.user_info.columns.name.cipherColumn=name_encrypt
spring.shardingsphere.encrypt.tables.user_info.columns.name.encryptor=name_encryptor
#开启使用密文列:读取对应的密文字段解密自动放到明文字段上
spring.shardingsphere.props.query.with.cipher.comlum=true
spring.shardingsphere.props.sql.show=true
mybatis-version:
org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2
springboot-version:
1.5.5
----------------------------------------------------------------
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