docker exception of Failed to instantiate [com.zaxxer.hikari.HikariDataSource] start Springboot

1. Problem Description

Project (version:)
2019-12-30 12:11:00 [com.xxxxxxxxxx.trans.ThirdTransApplication|]-[INFO] Starting ThirdTransApplication on ab6dfcbf22fe with PID 6 (/weblogic/webapp/app/xxx.jar started by weblogic in /weblogic/webapp/app)
2019-12-30 12:11:00 [com.xxxxxxxxxxxxxxxx.trans.ThirdTransApplication|]-[INFO] The following profiles are active: dat
2019-12-30 12:11:10 [org.springframework.boot.web.embedded.tomcat.TomcatStarter|]-[ERROR] Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthIndicatorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthIndicatorRegistry]: Factory method 'healthIndicatorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': 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 [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2019-12-30 12:11:10 [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter|]-[ERROR] 

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

2. Solution

在Springboot启动类中@SpringBootApplication
添加 exclude = {DataSourceAutoConfiguration.class}

Here Insert Picture Description

Published 261 original articles · won praise 37 · Views 200,000 +

Guess you like

Origin blog.csdn.net/u014636209/article/details/103773013