codedrinker / community

开源论坛、问答系统,现有功能提问、回复、通知、最新、最热、消除零回复功能。功能持续更新中…… 技术栈 Spring、Spring Boot、MyBatis、MySQL/H2、Bootstrap
http://www.mawen.co
MIT License
2.69k stars 776 forks source link

org.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean with name 'questionCache' #64

Open firsthubgit opened 3 weeks ago

firsthubgit commented 3 weeks ago

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@