org.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean with name 'questionCache'
Opened this issue · 0 comments
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'questionCache': Unsatisfied dependency expressed through field 'questionExtMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'questionExtMapper' defined in file [/Users/zhangzhendong/IDEA/community/target/classes/life/majiang/community/mapper/QuestionExtMapper.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 [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.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: @db.driver@