springboot报错信息:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘pmsBrandMapper’ defined in file [C:\Users\73148\IdeaProjects\community\community-admin\target\classes\com\guet\community\admin\mbg\mapper\PmsBrandMapper.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 [tk/mybatis/mapper/autoconfigure/MapperAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file [C:\Users\73148\IdeaProjects\community\community-admin\target\classes\com\guet\community\admin\mbg\mapper\UserMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘file [C:\Users\73148\IdeaProjects\community\community-admin\target\classes\com\guet\community\admin\mbg\mapper\UserMapper.xml]’. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.guet.community.admin.mbg.mapper.UmsAdminMapper.BaseResultMap
分析原因:Result Maps collection already contains value for com.guet.community.admin.mbg.mapper.UmsAdminMapper.BaseResultMap
这两个文件重复了,删除掉旧的问题件UserMapper.xml,然后再重新构建一下
保险起见target也删除了
就恢复正常了