添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
阳光的甜瓜  ·  Android:BottomNavigati ...·  2 月前    · 
冲动的消炎药  ·  javaforEach - CSDN文库·  3 月前    · 
霸气的蛋挞  ·  10. ...·  1 年前    · 
坚强的佛珠  ·  TypeScript ...·  1 年前    · 

Springboot配置源文件报错

SpringBoot项目在配置mysql驱动文件的时候报错

错误代码:

.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
2022-12-29 17:39:37.071  INFO 14024 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'
2022-12-29 17:39:37.072  INFO 14024 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2022-12-29 17:39:37.078  INFO 14024 --- [           main] ConditionEvaluationReportLoggingListener : 
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-12-29 17:39:37.080 ERROR 14024 --- [           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: