>>梦想乡<<

[SpringBoot]java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName.

【问题描述】

SpringBoot2.3.1配置ShardingSphere4.1.0时报错,如下所示:

spring.shardingsphere.datasource.ds1.type=com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
spring.shardingsphere.datasource.ds1.username=root
spring.shardingsphere.datasource.ds1.password=root

 

【解决方案】

spring.datasource.url -->spring.datasource.jdbc-url,问题解决。

posted @ 2020-07-22 15:12  文苏  阅读(809)  评论(0编辑  收藏  举报