>>梦想乡<<

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属性配置文件,所以还是老老实实的按照官方文档来吧。

posted @ 2020-07-22 14:41  文苏  阅读(3819)  评论(1编辑  收藏  举报