也是第一次test就报错了

来源:3-6 dao层开发

慕田峪8248779

2018-10-30 10:54

报错内容:

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).

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


写回答 关注

1回答

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

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

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

    3、sessionFactory文件注解

SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

91499 学习 · 621 问题

查看课程

相似问题