测试的时候一直报这个错

来源:3-3 datasource和sessionfactorybean的配置

qq_左手牵右手_1

2018-07-06 02:10

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookInfoDao' defined in file [/Users/fqs/Desktop/java/book/target/classes/com/wx/book/dao/bookInfoDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/wx/book/config/mapper/SessionFactoryConfig.class]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: The setting userGeneratedKeys is not known.  Make sure you spelled it correctly (case sensitive).


写回答 关注

1回答

  • 枣幸home
    2018-09-17 10:34:21

    问题解决了吗,我也是一直这个错,能分享一下解决方案吗?


SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

91499 学习 · 621 问题

查看课程

相似问题