springboot整合mybatis时报错

lwy666 发布于 09/20 16:48
阅读 273
收藏 0

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdbcDialect' defined in class path resource [org/springframework/boot/autoconfigure/data/jdbc/JdbcRepositoriesAutoConfiguration$SpringBootJdbcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.relational.core.dialect.Dialect]: Factory method 'jdbcDialect' threw exception; nested exception is org.springframework.data.jdbc.repository.config.DialectResolver$NoDialectException: Cannot determine a dialect for org.springframework.jdbc.core.JdbcTemplate@4338aa73. Please provide a Dialect.

加载中
0
piaoyaoi
piaoyaoi

检查一下driverclass

0
lixingsikao
lixingsikao

Bean实例异常   jdbcDialect 这个bean添加到spring时候失败 看下你的 jdbcDialect 方法

返回顶部
顶部