【问题描述】

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

相关文章:

  • 2021-12-01
  • 2021-07-23
  • 2021-12-04
  • 2021-05-17
  • 2022-12-23
  • 2022-01-12
  • 2022-01-20
  • 2021-08-11
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2021-12-02
  • 2021-11-09
  • 2022-02-14
相关资源
相似解决方案