首页 > 编程语言 >4-springboot多数据源配置报错Cause: java.lang.IllegalArgumentException: jdbcUrl is required with driverClassN

4-springboot多数据源配置报错Cause: java.lang.IllegalArgumentException: jdbcUrl is required with driverClassN

时间:2023-03-21 17:01:12浏览次数:36  
标签:lang jdbc uatspring refunddb 数据源 mysql 报错 datasource spring

springboot2.0版本以上的多数据源配置改成:

spring.datasource.refunddb.url=jdbc:mysql://refund地址
spring.datasource.refunddb.username=uat
spring.datasource.refunddb.password=uat
spring.datasource.refunddb.driver-class-name=com.mysql.jdbc.Driver

->
spring.datasource.refunddb.jdbc-url=jdbc:mysql://refund地址
spring.datasource.refunddb.username=uat
spring.datasource.refunddb.password=uat
spring.datasource.refunddb.driver-class-name=com.mysql.jdbc.Driver
问题即解决
参考文章:
https://blog.csdn.net/weixin_40816738/article/details/126823798

标签:lang,jdbc,uatspring,refunddb,数据源,mysql,报错,datasource,spring
From: https://www.cnblogs.com/healthinfo/p/17240606.html

相关文章