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 2023/01/20 16:08:51 UTC

[GitHub] [shardingsphere] linghengqian commented on issue #23283: Some problems of the integration of shardingphere-jdbc-5.3.0 and springboot

linghengqian commented on issue #23283:
URL: https://github.com/apache/shardingsphere/issues/23283#issuecomment-1398608315

   @pengxianggui 
   
   - One possible idea is that we can change the existing process of reading YAML, and try to read environment variables once text in the format of `${}` such as `${SELF_JDBC_URL}` is detected.
   
   - Even now, there is a less intuitive way of doing it.  Since shardingsphere-jdbc-core comes with SnakeYAML 1.33, you can pre-write a YAML file or Template file that contains a series of `${}`, and then use SnakeYAML to read and replace this part of `${}` with other self-  Environment variable values ​​read with functions, and then serialized into YAML files required by shardingsphere-jbdc-core.  The process I am talking about is somewhat similar to the way nginx's docker image reads environment variables, refer to https://hub.docker.com/_/nginx .
   
   - I'm assuming you have another plan for submitting a PR.


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