java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.sample.mappers.UserMapper.getAllUsers

Stack Overflow | Lucky | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    MyBatis - Mapped Statements collection already contains value for

    Stack Overflow | 10 months ago | Lucky
    java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.sample.mappers.UserMapper.getAllUsers
  2. 0

    mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案 - zengdeqing2012的专栏 - 博客频道 - CSDN.NET

    csdn.net | 11 months ago
    java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
  3. 0

    java.lang.IllegalArgumentException: Result Maps collection already contains value for

    Google Groups | 4 years ago | Colin Williams
    java.lang.IllegalArgumentException: Result Maps collection already contains value for com.example.SavedUserSessionMapper.getSessionByIdentifier-String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Support case insensitive Mapper / Mapper.xml relationships and duplicate detection

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IllegalArgumentException: Result Maps collection already contains value for my.test.DbMapper.TestResult at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBui lder.java:59) at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:39) at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(Map perAnnotationBuilder.java:71) at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotat ionBuilder.java:49)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Mapped Statements collection already contains value for com.sample.mappers.UserMapper.getAllUsers

      at org.apache.ibatis.session.Configuration$StrictMap.put()
    2. MyBatis
      Configuration.addMapper
      1. org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:802)
      2. org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:774)
      3. org.apache.ibatis.session.Configuration.addMappedStatement(Configuration.java:598)
      4. org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:300)
      5. org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parseStatement(MapperAnnotationBuilder.java:313)
      6. org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:128)
      7. org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:72)
      8. org.apache.ibatis.session.Configuration.addMapper(Configuration.java:671)
      8 frames
    3. MyBatis-Spring
      MapperFactoryBean.checkDaoConfig
      1. org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:81)
      1 frame
    4. Spring Tx
      DaoSupport.afterPropertiesSet
      1. org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
      1 frame