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