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 2020/10/10 03:35:34 UTC

[GitHub] [shardingsphere] dwyane3011 opened a new issue #7729: sharding-jdbc how to reference variables in the yaml file

dwyane3011 opened a new issue #7729:
URL: https://github.com/apache/shardingsphere/issues/7729


   ## Question
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   
   dataSources:
   ds0: !!com.alibaba.druid.pool.DruidDataSource
   driverClassName: com.mysql.jdbc.Driver
   url: ${resource.jdbc.url}
   username: ${resource.jdbc.username}
   password: ${resource.jdbc.password}
   
   as indicated above, when I start the service:
   2020-10-10 10:23:09.498 INFO 16164 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
   2020-10-10 10:23:09.504 ERROR 16164 --- [eate-2004947954] com.alibaba.druid.pool.DruidDataSource : create connection error, url: ${resource.jdbc.url}
   
   java.sql.SQLException: connect error, url ${resource.jdbc.url}, driverClass com.mysql.jdbc.Driver
   at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1434) ~[druid-1.0.11.jar:1.0.11]
   at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1857) ~[druid-1.0.11.jar:1.0.11]


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



[GitHub] [shardingsphere] dwyane3011 commented on issue #7729: sharding-jdbc how to reference variables in the yaml file

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


   Somebody has used it?


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



[GitHub] [shardingsphere] dwyane3011 closed issue #7729: sharding-jdbc how to reference variables in the yaml file

Posted by GitBox <gi...@apache.org>.
dwyane3011 closed issue #7729:
URL: https://github.com/apache/shardingsphere/issues/7729


   


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



[GitHub] [shardingsphere] kimmking commented on issue #7729: sharding-jdbc how to reference variables in the yaml file

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


   yaml configuration doesn't support placeholder now.
   you can use spring-boot-starter for placeholder.


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