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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM