我一直啟動不了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
2020-08-30
是不是數(shù)據(jù)源配置錯了,你可以把配置信息粘貼出來看看。
2020-08-26
看下你的mavenjar包 是不是版本不一致? 項(xiàng)目名下有個library看下mybatisplus的幾個jar包版本是否一致