今天做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)…
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…
Result Maps collection does not contain value for java.lang.String 以上是我报的错. 只要报Result Maps collection does not contain value for*****的错误都是同一种错误. 问题排查: 从异常信息里无法看出具体是哪里出了错误.只提示调用出现错误的地方.但是经过检查后明显错误不是再此处的代码. 经过每个问题文件进行移除,一次次运行进行排查问题最终找到了错误的地方,处于一个xml里面的…
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…
使用Mybatis的时候出现这个问题是因为配置文件的问题造成的,mybatis需要写大量的配置文件, 尽管有mybatis-generator,但是里面的内容有很多还是要自己去写的,在这过程中难免会出现问题, 上述问题是因为返回类型错误造成的,resultMap属性的返回类型错误,如下 <select id="getListBy" parameterType="com.cbt.staticize.model.Intensve" resultMap="…
重点:报错的方法和xml文件不一定是错误的位置,如果有多个xml文件,必须检查所有的文件 搜索  resultMap="java.lang.Integer" 找到对应的文件,改为 resultType="java.lang.Integer" 1.检查mybatis的xml配置 2.在某处肯定有配错了的,如"resultMap" -->"resultType" https://bbs.csdn.net/topics/392…
解决办法:1.检查mybatis的xml配置 2.在某处肯定有配错了的,如"resultMap" -->"resultType" [html] view plain copy<select id="getNumDayMoney" resultMap="java.lang.Integer" parameterType="java.lang.Integer"> <![CDATA[ sel…
这样的配置有问题吗? <select id="getFreightCollectManagementList" resultMap="java.util.HashMap" parameterType="com.rms.providers.dto.AccountingPayableDto"> 有的, 出现mybatis 错误: -- :: - [http-nio--exec-] DEBUG - Added HttpServletResp…
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 估计原因为大小写敏感!…