谁知道咋解决,跪求

来源:5-4 交易模型管理--交易下单03

慕神2215182

2019-07-20 16:11

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '/item': Unsatisfied dependency expressed through field 'itemService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemService' defined in file [D:\IDEA\idea项目\miaosha\target\classes\com\asia\miaosha\Service\ItemService.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 [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.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 [D:\IDEA\idea项目\miaosha\target\classes\mapping\UserDOMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.asia.miaosha.Dao.UserDOMapper.BaseResultMap

写回答 关注

1回答

  • weixin_慕移动4594404
    2019-08-04 22:13:14

    看关键词“Result Maps collection already contains value for com.asia.miaosha.Dao.UserDOMapper.BaseResultMap”

    应该是你UserDOMapper.xml下面的BaseResultMap重复了


SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49064 学习 · 954 问题

查看课程

相似问题