问答详情
源自:3-6 dao层开发

老师,运行测试类报错,麻烦一下

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/gaoyang/demo/config/dao/SessionFactoryConfiguration.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 useHeneratedkeys is not known.  Make sure you spelled it correctly (case sensitive).

提问者:慕工程8423128 2018-05-29 16:40

个回答

  • 慕盖茨8032966
    2018-05-30 15:06:00

    useHeneratedkeys你拼错了吧,改成 useGeneratedKeys


  • 小小码农QAQ
    2018-05-30 11:31:42

    我这也是这个问题,解决了吗