当前位置:网站首页>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
边栏推荐
- Prometheus和Zabbix的对比
- EFK升级到ClickHouse的日志存储实战
- 100 cases of go language
- Logstash -- send an alert message to the nail using the throttle filter
- tf. nn. top_ k()
- DS18B20详解
- 自顶向下的变成方法
- numpy. log
- Everything is a vector. The service practice of iqiyi online vector recall project
- Message queue - message transaction management comparison
猜你喜欢
随机推荐
EFK升级到ClickHouse的日志存储实战
Comparison between Prometheus and ZABBIX
Design and practice of low code real-time data warehouse construction system
Lamda expression
温度报警器
How can an enterprise successfully complete cloud migration?
Hot! 11 popular open source Devops tools in 2021!
Transaction and message semantics
ByteDance starts the employee's sudden wealth plan and buys back options with a large amount of money. Some people can earn up to 175%
typescript的type
Dpdk - tcp/udp protocol stack server implementation (II)
Tortoise and rabbit race example
GoF23—建造者模式
获取当前月份的第一天和最后一天,上个月的第一天和最后一天
Library management system
Research Report on market supply and demand and strategy of China's microneedle device industry
低代码实时数仓构建系统的设计与实践
Understanding of nil in go language
去哪儿网BI平台建设演进史
MySQL-07




![[spark] how to implement spark SQL field blood relationship](/img/8e/96f83844b480916b2662b0cf1fdf65.jpg)




