mybatis异常:Could not find result map ......... 问题分析及解决

org.apache.ibatis.builder.IncompleteElementException: Could not find result map。。。。。。。

网上的大部分的改正方法是:

错误写法

<select id="queryXXXCount" resultMap="java.util.Map" >

正确写法:

<select id="queryXXXCount" resultType="java.util.Map">

我犯的错误是:

resultMap 中的id是小写

但在select标签中,resultMap中就变成大写的了,所以出错了。

原文地址:https://www.cnblogs.com/yang-xiansen/p/10486367.html

时间: 2024-10-28 19:42:58

mybatis异常:Could not find result map ......... 问题分析及解决的相关文章

mybatis异常:Could not find result map Java.util.Map 问题分析及解决 定位不到具体的位置的错误

mybatis异常:Could not find result map Java.util.Map 问题分析及解决 错误写法  <select id="queryXXXCount" resultMap="java.util.Map" > mybatis报出的异常日志:org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.Map a

mybatis异常:Could not find result map java.util.Map 问题分析及解决

错误写法 <select id="queryXXXCount" resultMap="java.util.Map" > mybatis报出的异常日志: org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.Map at org.apache.ibatis.builder.MapperBuilderAssistant.setStat

检索 COM 类工厂中 CLSID 为 {96749377-3391-11D2-9EE3-00C04F797396} 的组件失败,异常0x80040154,没有注册类问题分析和解决办法

问题分析和解决 //阅读函数 private void Read(string text) { SpVoice sp = new SpVoice();//报错位置 sp.Rate = GetSpeedSelected(); SpeechVoiceSpeakFlags sFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync; sp.Speak(text, sFlags); } 报错信息: 有关调用实时(JIT)调试而不是此对话框的详细信息, 请参见此消息的结尾.

Mybatis报错:org.apache.ibatis.builder.IncompleteElementException: Could not find result map com.me.mybatis.mapper.OrderMapper.

运行关联查询的例子时报错: org.apache.ibatis.builder.IncompleteElementException: Could not find result map com.me.mybatis.mapper.OrderMapper. at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap(MapperBuilderAssistant.java:346) at org.apache.

A query was run and no Result Maps were found for the Mapped Statement &#39;user.insertUser!selectKey&#39;. It&#39;s likely that neither a Result Type nor a Result Map was specified.

使用mybatis时出现异常问题: 有如下的错误 1 Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'user.insertUser!selectKey'. It's likely that neither a Result Type nor a

Spring MVC +MyBatis +MySQL 简单的登录查询 Demo 解决了mybatis异常

忙活了大半天,饭也没顾得上吃,哎许久不动手,一动手就出事,下面请看今天的重头戏,额吃个饭回来再发了! 1.整体结构 2.准备工作 数据库: --Mysql 5.6 创建数据库 wolf CREATE DATABASE wolf; 创建用户表 user create table user( id int  AUTO_INCREMENT  primary key, name varchar(25) not null, pwd varchar(20) not null, create_time dat

好947 Mybatis 配置resultMap 带参数查询Map 注意selectOne数据库返回结果一条数据库 否则会报错

//TMD 写几个demo 还有大站采集 <a target=_blank href="http://hao947.com/" target="_blank">好947</a> 映射配置文件 <!-- type:映射实体类的数据类型 id:resultMap的唯一标识 --> <RESULTMAP id=BaseResultMap type="person"><pre name="c

Mybatis异常_02_Result Maps collection already contains value for

一.异常 1.异常信息 2.异常原因 XXXMapper.xml文件中存在重名对象,保持名称不要一样即可正常启动. 二.参考资料 1.Mybatis启动报Result Maps collection already contains value for ...的问题 1.mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案 2.Mybatis异常-Result Maps collection

org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.HashMap

这样的配置有问题吗? <select id="getFreightCollectManagementList" resultMap="java.util.HashMap" parameterType="com.rms.providers.dto.AccountingPayableDto"> 有的, 出现mybatis 错误: 2018-08-13 15:28:35 -13867 [http-nio-80-exec-10] DEBUG