为了账号安全,请及时绑定邮箱和手机立即绑定

我一直启动不了springboot

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'houseMapper' defined in file [E:\java\first\target\classes\com\mp\dao\HouseMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.cj.jdbc.Driver

正在回答

2 回答

是不是数据源配置错了,你可以把配置信息粘贴出来看看。

0 回复 有任何疑惑可以回复我~

看下你的mavenjar包 是不是版本不一致  项目名下有个library看下mybatisplus的几个jar包版本是否一致

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

我一直启动不了springboot

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号