Replies: 3 comments
-
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you solved this problem? |
Beta Was this translation helpful? Give feedback.
0 replies
-
parse the config file and use regex to match the encrypted password to decrypt,then replace it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use shardingsphere-jdbc-core 5.4.0.
In order to encrypt the database password into ciphertext, HikariDataSource is inherited and getPassword() is rewritten.As follows:
My springboot for shardingsphere in the application-sharding.yml file as follows:
application.yaml
But,meet some problem,like that:
First,NPE happen at standardProps.get("url").toString(),url is null.
Then I analyze the source code found that it is related to this implementation of org.apache.shardingsphere.infra.datasource.props.DataSourceProperties
AndataSourceClassName is my custom defined,but TypedSPILoader.findService(DataSourcePoolMetaData.class, dataSourceClassName) can
t find the DataSourcePoolMetaData.Map<String, String> propertySynonyms is null,so new ConnectionPropertySynonyms(props, propertySynonyms) can
t set url correct.Beta Was this translation helpful? Give feedback.
All reactions