Springboot+ShardingSphere启动时报错,shardingSphere的配置为yaml格式

【问题描述】

Springboot+ShardingSphere启动时报错,shardingSphere的配置为yaml格式。

Caused by: could not determine a constructor for the tag tag:yaml.org,2002:com.zaxxer.hikari.HikariDataSource

【问题根源】

从报错来看,应该是springboot无法解析yml配置文件中的配置。

【解决方案】

官方推荐SpringBoot使用的是properties属性配置文件,所以还是老老实实的按照官方文档来吧。

原文地址:https://www.cnblogs.com/liuyp-ken/p/13360601.html