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


   ## 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}
   如上所示,我这样引用变量,服务启动时提示:
   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:
[email protected]


Reply via email to