启动OSS 报数据库链接错误

提问 1 382
dddsafsd
dddsafsd 2022-12-31
版本:renren-cloud 开发环境:
2022-12-31 15:51:49.422 INFO 10964 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 37 ms. Found 0 Redis repository interfaces. 2022-12-31 15:51:49.968 INFO 10964 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=a187a5ec-45a5-39b5-9767-7d374363487a 2022-12-31 15:51:51.335 INFO 10964 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8083 (http) 2022-12-31 15:51:51.361 INFO 10964 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2022-12-31 15:51:51.362 INFO 10964 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.65] 2022-12-31 15:51:51.777 INFO 10964 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/oss] : Initializing Spring embedded WebApplicationContext 2022-12-31 15:51:51.778 INFO 10964 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 6162 ms 2022-12-31 15:51:51.921 INFO 10964 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2022-12-31 15:51:52.233 ERROR 10964 --- [ main] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webMvcMetricsFilter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/web/servlet/WebMvcMetricsAutoConfiguration.class]: Unsatisfied dependency expressed through method 'webMvcMetricsFilter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'simpleMeterRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/export/simple/SimpleMetricsExportAutoConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSourcePoolMetadataMeterBinder' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/jdbc/DataSourcePoolMetricsAutoConfiguration$DataSourcePoolMetadataMetricsConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourcePoolMetadataMeterBinder' 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 org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class 2022-12-31 15:51:52.277 INFO 10964 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2022-12-31 15:51:52.460 WARN 10964 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 2022-12-31 15:51:52.497 INFO 10964 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2022-12-31 15:51:52.548 ERROR 10964 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (the profiles dev are currently active). 2022-12-31 15:51:52.550 WARN 10964 --- [ Thread-10] c.a.n.common.http.HttpClientBeanHolder : [HttpClientBeanHolder] Start destroying common HttpClient 2022-12-31 15:51:52.550 WARN 10964 --- [ Thread-22] c.a.nacos.common.notify.NotifyCenter : [NotifyCenter] Start destroying Publisher Process finished with exit code 1
回帖