Spring Boot报错Failed to bind properties under ‘‘ to com.zaxxer.hikari.Hikari DataSource

深藏阁楼爱情的钟 2024-03-16 22:08 144阅读 0赞

最近在使用springboot时报了个错Failed to bind properties under ‘’ to com.zaxxer.hikari.Hikari DataSource,经过分析和排查,最终将处理办法记录下来,并分享给大家。

问题描述

在使用 Spring Boot 连接 MySQL 或其他数据库时,出现以下错误:

  1. ***************************
  2. APPLICATION FAILED TO START
  3. ***************************
  4. Description:
  5. Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
  6. Property: driverclassname
  7. Value: null
  8. Origin: "driverClassName" from property source "source"
  9. Reason: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalArgumentException: Could not load JDBC driver class [null]
  10. Property: url
  11. Value: null
  12. Origin: "url" from property source "source"
  13. Reason: Property 'url' threw exception; nested exception is java.lang.IllegalArgumentException: url is required.
  14. Property: username
  15. Value: null
  16. Origin: "username"

发表评论

表情:
评论列表 (有 0 条评论,144人围观)

还没有评论,来说两句吧...

相关阅读