測試的時候一直報這個錯
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).
2018-09-17
問題解決了嗎,我也是一直這個錯,能分享一下解決方案嗎?