这篇文章上次修改于 2230 天前,可能其部分内容已经发生变化,如有疑问可询问作者。 ### 今天配置hikari后犯了一个低级错误 ```java *************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'spring.datasource.type' to java.lang.Class: Property: spring.datasource.type Value: com.zaxxer.hikari.HikariDataSource Origin: "spring.datasource.type" from property source "bootstrapProperties" Reason: No converter found capable of converting from type [java.lang.String] to type [java.lang.Class] Action: Update your application's configuration ``` ### 原因是没有引用hikari连接池 ```java com.zaxxer HikariCP 3.2.0 mysql mysql-connector-java 5.1.6 ```
没有评论