一、该问题的重现步骤是什么?
1. 修改 dev nacos配置
2. 启动Auth服务
3.报数据库连接不上,就是没有连接到nacos. 配置都正确。
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
bladex2.7 centos
四、请提供详细的错误堆栈信息,这很重要。
BladeAuthorizationServerConfiguration.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Invocation of init method failed; nested exception is java.sql.SQLException: connect error, url ${blade.datasource.dev.url}, driverClass com.mysql.cj.jdbc.Driver
2021-01-05 10:22:54.830 ERROR [blade-auth,,,] 85510 --- [eate-1159524199] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: ${blade.datasource.dev.url}, errorCode 0, state null
java.sql.SQLException: connect error, url ${blade.datasource.dev.url}, driverClass com.mysql.cj.jdbc.Driver
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1721) ~[druid-1.2.1.jar:1.2.1]
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2785) ~[druid-1.2.1.jar:1.2.1]
2021-01-05 10:22:55.002 ERROR [blade-auth,,,] 85510 --- [eate-1495678843] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: ${blade.datasource.dev.url}, errorCode 0, state null
java.sql.SQLException: connect error, url ${blade.datasource.dev.url}, driverClass com.mysql.cj.jdbc.Driver
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1721) ~[druid-1.2.1.jar:1.2.1]
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2785) ~[druid-1.2.1.jar:1.2.1]
2021-01-05 10:22:55.335 ERROR [blade-auth,,,] 85510 --- [eate-1159524199] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: ${blade.datasource.dev.url}, errorCode 0, state null
java.sql.SQLException: connect error, url ${blade.datasource.dev.url}, driverClass com.mysql.cj.jdbc.Driver
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1721) ~[druid-1.2.1.jar:1.2.1]
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2785) ~[druid-1.2.1.jar:1.2.1]
2021-01-05 10:22:55.508 ERROR [blade-auth,,,] 85510 --- [eate-1495678843] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: ${blade.datasource.dev.url}, errorCode 0, state null
java.sql.SQLException: connect error, url ${blade.datasource.dev.url}, driverClass com.mysql.cj.jdbc.Driver
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1721) ~[druid-1.2.1.jar:1.2.1]
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2785) ~[druid-1.2.1.jar:1.2.1]
2021-01-05 10:22:55.524 WARN [blade-auth,,,] 85510 --- [ main] z.r.AsyncReporter$BoundedAsyncReporter : Timed out waiting for in-flight spans to send
2021-01-05 10:22:55.548 INFO [blade-auth,,,] 85510 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-01-05 10:22:55.564 ERROR [blade-auth,,,] 85510 --- [ main] o.s.boot.SpringApplication
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端