记录一次小失误

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [F:\U1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\yonghe-test\WEB-INF\classes\spring\applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [F:\U1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\yonghe-test\WEB-INF\classes\mapper\DoorMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [F:\U1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\yonghe-test\WEB-INF\classes\mapper\DoorMapper.xml]'. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.yl.dao.DoorDao.deleteById

 最后一句是关键 翻译过来了是 “映射语句集合已包含” 换句或说 Mapper 有一个对接不上接口 因为 接口已实现 ,因为我写重了,所以实现了两次

posted @ 2020-06-12 12:52  大司马真菜  阅读(116)  评论(0)    收藏  举报