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 02:54:54 UTC
[GitHub] [shardingsphere] dwyane3011 opened a new issue #7728: sharding-jdbc如何在yaml文件里引用变量
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:
users@infra.apache.org
[GitHub] [shardingsphere] dwyane3011 commented on issue #7728: sharding-jdbc how to reference variables in the yaml file
Posted by GitBox <gi...@apache.org>.
dwyane3011 commented on issue #7728:
URL: https://github.com/apache/shardingsphere/issues/7728#issuecomment-706479419
> @dwyane3011 Please modify the title and content of this issue in English. BTW, have you tried to use actual url and password?
yes,now,i need reference variables.
----------------------------------------------------------------
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] tristaZero removed a comment on issue #7728: sharding-jdbc如何在yaml文件里引用变量
Posted by GitBox <gi...@apache.org>.
tristaZero removed a comment on issue #7728:
URL: https://github.com/apache/shardingsphere/issues/7728#issuecomment-706478514
@dwyane3011 Please modify the title and content of this issue in English. BTW, have you tried to use actual url and password?
----------------------------------------------------------------
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] tristaZero commented on issue #7728: sharding-jdbc如何在yaml文件里引用变量
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #7728:
URL: https://github.com/apache/shardingsphere/issues/7728#issuecomment-706478514
@dwyane3011 Please modify the title and content of this issue in English. BTW, have you tried to use actual url and password?
----------------------------------------------------------------
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 #7728: sharding-jdbc如何在yaml文件里引用变量
Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #7728:
URL: https://github.com/apache/shardingsphere/issues/7728#issuecomment-706478153
English only.
----------------------------------------------------------------
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 #7728: sharding-jdbc how to reference variables in the yaml file
Posted by GitBox <gi...@apache.org>.
dwyane3011 commented on issue #7728:
URL: https://github.com/apache/shardingsphere/issues/7728#issuecomment-706479543
----------------------------------------------------------------
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] terrymanu commented on issue #7728: sharding-jdbc如何在yaml文件里引用变量
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #7728:
URL: https://github.com/apache/shardingsphere/issues/7728#issuecomment-706478871
For English only, other languages will not accept.
----------------------------------------------------------------
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] terrymanu closed issue #7728: sharding-jdbc如何在yaml文件里引用变量
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #7728:
URL: https://github.com/apache/shardingsphere/issues/7728
----------------------------------------------------------------
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