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

也是第一次test就报错了

报错内容:

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'employeeDao' defined in file [/home/zhaoyl/mybatisDemo/target/classes/com/mybatis/demo/dao/EmployeeDao.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/mybatis/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 [conf.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: The setting mapUnderscoreToCamleCase is not known.  Make sure you spelled it correctly (case sensitive).

跪求哪位大佬来帮我看一下


提问者:慕田峪8248779 2018-10-30 10:54

个回答

  • NullPointer8023
    2018-10-30 11:22:43

    1、检查标签注解是否缺失

    2、检查xml文件路径配置是否有误

    3、sessionFactory文件注解