springboot默认数据源hikari替换成druid,启动提示Failed to configure a DataSource: 'url' attribute is not specified and no embedded

原因是

hikira:

spring.datasource.bi.jdbc-url=jdbc:mysql://ip:3306/base?allowMultiQueries=true&useUnicode=true&autoReconnect=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull

druid:

spring.datasource.bi.url=jdbc:mysql://ip:3306/base?allowMultiQueries=true&useUnicode=true&autoReconnect=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull

更改数据源配置的同事,对应的url一个是jdbc-url要改成url

原文地址:https://www.cnblogs.com/feibazhf/p/13178751.html