由于mapper.xml中resultMap = "map"  改为 resultType="map"即可,折腾了一下午…
今天做springmvc+mybatis+spring的项目的时候发现了一个异常.如下: org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.lang.Integer at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap(MapperBuilderAssistant.java:346)…
Result Maps collection already contains value for select s.id,s.branch_name from t_wx_shop s left join t_hospital_main  m on s.id=m.shop_id where s.bus_id=#{busId,jdbcType=Integer} and m.id ==null 把Integer 改成 INTEGER 估计原因为大小写敏感!…
转自:http://blog.csdn.net/tan3739/article/details/7555665 Exception in thread "main" Java.lang.ExceptionInInitializerError at com.test.Test.main(Test.java:12)Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSessi…
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoSupport': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name…
java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99) at org.springframework.test.context.TestContext.getApplication…
Servlet.service() for servlet [SpringMVC] in context with path [/eyou] threw exception [Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.lang.Integer] with root causej…
由于mybatis简单易学,比起Hibername来,更容易上手,代码也能自动生成.这几天研究了下代码自动生成的,参考: http://0609xiaohua.iteye.com/blog/1453570 但是把代码复制进来,运行了下,却跑不起来,报以下错误: Exception in thread "main" Java.lang.ExceptionInInitializerError at com.test.Test.main(Test.java:12)Caused by: org…
如果在SSM整合的时候出现以下的错误: 留意一下是不是既在Mybatis配置文件中加载了映射文件,又在Spring配置文件中使用扫描式去加载映射文件了.两者是不能够重合使用的! Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\SSM\out\production\SSM\zhongfucheng\dao\DeptMapper.xml]'; nest…
Result Maps collection does not contain value for java.lang.String 以上是我报的错. 只要报Result Maps collection does not contain value for*****的错误都是同一种错误. 问题排查: 从异常信息里无法看出具体是哪里出了错误.只提示调用出现错误的地方.但是经过检查后明显错误不是再此处的代码. 经过每个问题文件进行移除,一次次运行进行排查问题最终找到了错误的地方,处于一个xml里面的…
Result Maps collection already contains value for ...BaseResultMap ...... 这个问题,相信大家在使用mybatis的重新生成 dao,pojo,mapper的时候,都有可能会遇见. 开发过程中,我们改修了表结构,需要重新生成mybatis的配置文件,然后覆盖回原来工程. 往往在发布项目的时候,就会出现这个问题. 个人猜想这是由于mybatis在重新覆盖了配置文件之后,容器发布的时,Spring重新关联mybatis 配置文件…
mybatis报错:Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.geek.dao.ContentDao.Integer 出错原因:一个手误 <select id="selectAllFirstNavigationName" resultMap="firstNavigation"> SELECT fi…
是因为 Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for IStudentDaoMapper.Mapperdao.select是因为resultmaper的值错了…
Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult 一  错误信息: 19:26:05,446 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80…
这是因为用了一次以上(多次)mbg导致sql映射文件堆积导致的异常,删除对应的sql映射文件,然后重新生成即可. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for org.kinome.rm.dao.SysSysinfoMapper.BaseResultMap at org.apache.ibatis.session.Configuration$Stri…
今天在写项目的时候遇到一个问题如下: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.### The error may exist in NovelMapper.xml### The error occurred while processing mapper_resultMap[BaseResultMap]### Cause: org.apache.ibatis.builder.…
ssm搭建过程中启动tomcat,报错: Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult 原因: 我遇到这问题时是因为代码有一部分是工具自动生成的, 有一部分是手动拷贝的, 所以鸟到一起导致有部分代码是重…
异常一:Result Maps collection already contains value for com.ssj.mapper.XXXMapper 原因分析:XXXmapper.xml文件中出现了ID相同的值; 可能导致因素: 原逆向工程生成的文件未删除,又执行了一次逆向工程. 异常二:Type interface com.ssj.mapper.UserMapper is already known to the MapperRegistry. 原因分析:mybatisconfig.x…
在做mybatis多表查询的时候,出现了下面的错误: java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.up.sell.mapper.system.AdvertisementMapper.areasResult at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:888…
like ‘%java.lang.IllegalArgumentException: Result Maps collection does not contain value for java.lang.Inte%’ --- 改成 resultType…
转自:https://blog.csdn.net/zengdeqing2012/article/details/50978682 1 [WARN ] 2016-03-25 13:03:23,955 - org.springframework.remoting.support.RemoteInvocationTraceInterceptor -53288 [RMI TCP Connection(5)-192.168.1.140] - Processing of RmiServiceExporter…
[转载]原文链接:https://blog.csdn.net/maoyuanming0806/article/details/77870345 使用mybatis时,服务器启动时出错 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.…
springboot启动时候,报错如下: Result Maps collection already contains value for com.xxx.xx.dao.xxxxxMapper.BaseResultMap 原因是采用  Mybatis-Generator在生成Mapper.xml文件时,在原来基础上再生成了一边,内容重复.我是将原来的数据库添加了新的字段,然后又自动生成,没有删除原来文件下直接将代码复制覆盖了之前代码,没看到重复的内容 解决办法,第一在生成代码时候,将原来的文件…
在使用ssm时出现的错误: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for cn.itcast.ssm.mapper.CompetesMapperCustom.baseMap 原因是,在自己写的mapper.xml文件中具…
Result Maps collection already contains value for com.zhaike.mapping.ChapterMapper.BaseResultMap Error creating bean with name 'courseController': Unsatisfied dependency expressed through field 'courseService'; nested exception is org.springframework…
ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.win.mall.dao.CartMapper.test'. It's likely that neither a Result Type nor a Result Map was specified. 原因:mybatis没有resultMap报错 在mapper文件的 select 标签中没有指定 res…
现象:同一个springmvc工程使用eclipse和idea用Tomcat启动都没问题,但是如果走单元测试使用到了@ContextConfiguration这个spring的上下文注解idea出问题了,eclipse没问题:由于最近才使用idea:只能先百度一下根据现象,发现天下文章一大抄...还得自己慢慢追! 第一阶段:根据提示基本断定这个map的id被加载了两次,但是全文搜索了一下确实只有一个id,排除传统的手残:eclipse没问题也能证明这点,这里就猜测很大可能是idea哪里需要设置一…
使用Mybatis的时候出现这个问题是因为配置文件的问题造成的,mybatis需要写大量的配置文件, 尽管有mybatis-generator,但是里面的内容有很多还是要自己去写的,在这过程中难免会出现问题, 上述问题是因为返回类型错误造成的,resultMap属性的返回类型错误,如下 <select id="getListBy" parameterType="com.cbt.staticize.model.Intensve" resultMap="…
出现此类错误的原因是同一个DAO操作多个Mapper导致的,将Mapper配置文件的  ResultMap的ID修改成不相同即可解决…