Could not find result map com.youotech.tl_cons_credit_rating.entity.Result
2024-10-20 20:41:31
后端报错如下:
java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.youotech.tl_cons_credit_rating.entity.Result
前端调用报错如下:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Sep 23 16:41:15 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
Could not find result map com.youotech.tl_cons_credit_rating.entity.Result
问题原因:
resources/mapper里面误将返回类型resultType错写成resultMap类型了
使用resultMap时,必须要有<resultMap></resultMap>标签指明id和返回类型以及表字段的对应关系。
如果是直接返回一个用户定义的实体类型,则要使用resultType,弄混淆就会报错。
最新文章
- _fastcall
- 使用notepad++进行格式转换
- 各浏览器对typeof运算符的实现差异
- ruby : Exception Notification
- SQL &; PL/SQL 模块总结
- 2016多校联合训练contest4 1012Bubble Sort
- Codeforces Round #300(Div. 2)-538A.str.substr 538B.不会 538C.不会 。。。
- Json的学习
- jsp页面传中文到后台乱码怎么办?
- WPF 主窗口关闭时结束所有相关线程
- sublime text3中emmet插件的使用
- makefile中的shell编程注意点
- 使用u盘重装双系统中的乌班图
- Ubuntu16.04 下虚拟环境的创建与使用
- Merge Interval leetcode java
- postgresql模式创建、修改、删除
- 完成了C++作业,本博客现在开始全面记录acm学习历程,真正的acm之路,现在开始
- 百度地图中使用mouseover事件获取经纬度时无法拿到鼠标所在位置的经纬度。
- LeetCode 中级 - 第k个排列(60)
- JavaScript的toString()