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 2022/12/12 01:50:05 UTC

[GitHub] [shardingsphere] Ikki-Dai opened a new issue, #22815: How inject DB password from other other PropertySource

Ikki-Dai opened a new issue, #22815:
URL: https://github.com/apache/shardingsphere/issues/22815

   ## Question
   
   **For English only**, other languages will not accept.
   
   Use Spring Boot wanna to inject password to property source and then created DataSource from SpringBootConfiguration
   
   
   ```
   private DataSource getDataSource(final Environment environment, final String prefix, final dataSourceName) {
     Map<String, Object> dataSourceProps = PropertyUtil.handle(environment, prefix+dataSourceName.trim(), Map.class);
     ...
   }
   
   ```
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] Ikki-Dai commented on issue #22815: How inject DB password from other other PropertySource

Posted by GitBox <gi...@apache.org>.
Ikki-Dai commented on issue #22815:
URL: https://github.com/apache/shardingsphere/issues/22815#issuecomment-1378275708

   emm... i inject properties value before sharding datasource created


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] Ikki-Dai commented on issue #22815: How inject DB password from other other PropertySource

Posted by GitBox <gi...@apache.org>.
Ikki-Dai commented on issue #22815:
URL: https://github.com/apache/shardingsphere/issues/22815#issuecomment-1345902909

   i wann't to set ShardingDataSource's Password before `ShardingSphereDataSource` created


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] azexcy commented on issue #22815: How inject DB password from other other PropertySource

Posted by GitBox <gi...@apache.org>.
azexcy commented on issue #22815:
URL: https://github.com/apache/shardingsphere/issues/22815#issuecomment-1345762533

   Hi @Ikki-Dai , I can't determine from the description what problem you are experiencing.
   If you are wondering how to create a ShardingSphere data source, Perhaps the solution can be found by reading the `ShardingSphereDataSource` and `ShardingSphereDataSourceFactory` source code 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] azexcy commented on issue #22815: How inject DB password from other other PropertySource

Posted by GitBox <gi...@apache.org>.
azexcy commented on issue #22815:
URL: https://github.com/apache/shardingsphere/issues/22815#issuecomment-1345925275

   @Ikki-Dai 
   If you using ShardingSphere-JDBC, `ShardingSphereDataSourceFactory.createDataSource` this may help. 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org