记录一次小失误
作者:互联网
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 有一个对接不上接口 因为 接口已实现 ,因为我写重了,所以实现了两次
标签:xml,core,yonghe,一次,WEB,记录,server,org,失误 来源: https://www.cnblogs.com/cnbk/p/13098755.html