org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'indexServiceImpl': Unsatisfied dependency expressed through field 'indexDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexDao' defined in file [H:\zyyyhj\target\zyyyhj\WEB-INF\classes\com\prison\index\dao\indexDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [H:\zyyyhj\target\zyyyhj\WEB-INF\classes\com\prison\zyhj\dao\YytsbDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file '. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value ..........

问题所在:

      启动报错  :batis  的xml 文件中出现相同的方法名

 

相关文章:

  • 2021-12-12
  • 2021-08-30
  • 2021-12-24
  • 2021-11-14
  • 2021-09-27
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-07
  • 2021-03-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
相关资源
相似解决方案