当前位置:网站首页>Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
2022-06-26 06:19:00 【Oh no, less hair】
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
Failed to configure data source : Not specified “url” attribute , Unable to configure embedded data source .
reason : Failed to determine the appropriate driver level
Error reporting solutions
1. @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
exclude, Exclude such AutoConfig, That is to prohibit SpringBoot Auto inject data source configuration
2. Configure data sources
- First, import. pom Dependency in
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
- stay application.yml Configure connection database in file
spring:
datasource:
url: jdbc:mysql://localhost:3306/blogsys?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
username: root
password: qwer
driver-class-name: com.mysql.jdbc.Driver
边栏推荐
- Zotero使用之自定义参考文献格式
- 连接数服务器数据库报:错误号码2003Can‘t connect to MySQL server on ‘服务器地址‘(10061)
- 获取当前月份的第一天和最后一天,上个月的第一天和最后一天
- DPDK——TCP/UDP协议栈服务端实现(一)
- TCP連接與斷開,狀態遷移圖詳解
- typescript的type
- 浏览器的四大内核:Trident,Gecko,Webkit,Blink
- MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
- Redis multithreading and ACL
- Message queuing - omnidirectional comparison
猜你喜欢
Customer Stories | Netease spring breeze: the "spring breeze" of the fun industry, reaching out to all areas through in-depth interaction

Comparison between Prometheus and ZABBIX

Thinking skills of technical leaders

连接数服务器数据库报:错误号码2003Can‘t connect to MySQL server on ‘服务器地址‘(10061)

Logstash - logstash sends an alarm email to email

TCP连接与断开,状态迁移图详解
Experience the new features of Milvus 2.0 together

TCP連接與斷開,狀態遷移圖詳解

去哪儿网BI平台建设演进史
Everything is a vector. The service practice of iqiyi online vector recall project
随机推荐
EFK升级到ClickHouse的日志存储实战
How to design a good technical scheme
Gof23 - prototype mode
typescript的type
Redis multithreading and ACL
Comparison between Prometheus and ZABBIX
Zotero使用之自定义参考文献格式
Getting started with Python
Logstash - logstash pushes data to redis
New generation engineers teach you how to play with alluxio + ml (Part 1)
成水最多的容器
GoF23—抽象工厂模式
DPDK——TCP/UDP协议栈服务端实现(二)
GoF23—工厂模式
Library management system
实时数仓方案如何选型和构建
01 golang and matlab code of knapsack problem
canal部署、原理和使用介绍
How to select and build a real-time data warehouse scheme
Use the fast proxy to build your own proxy pool (mom doesn't have to worry about IP being blocked anymore)