【問題描述】
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屬性配置文件,所以還是老老實實的按照官方文檔來吧。