org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘activityMapper’ defined in file [D:\软件\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\BIRUNET\WEB-INF\classes\org\share\domain\tree\mapper\ActivityMapper.class]:
Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’
defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource:
‘file [D:\软件\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\BIRUNET\WEB-INF\classes\org\share\domain\tree\mapperxml\SMUserMapper.xml]’;
nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for
org.share.domain.tree.mapper.SMUserMapper.BaseResultMap
说是mapper文件重复,找了半天没找到,最后删除了所有的mapper 重新生成了一遍ok