SpringBoot报 'url' attribute is not specified and no embedded datasource could be configured.

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

1、解决办法:在项目application.yml上url password如果是数字必须加引号不然就报上面url报错

数据库配置

spring:
datasource:
url: jdbc:mysql://localhost:3306/all?useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&serverTimezone=UTC
username: root
password: “123456”
http:
encoding:
charset: UTF-8
enabled: true
force: true

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页