后端报错如下:

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,弄混淆就会报错。

最新文章

  1. _fastcall
  2. 使用notepad++进行格式转换
  3. 各浏览器对typeof运算符的实现差异
  4. ruby : Exception Notification
  5. SQL &amp; PL/SQL 模块总结
  6. 2016多校联合训练contest4 1012Bubble Sort
  7. Codeforces Round #300(Div. 2)-538A.str.substr 538B.不会 538C.不会 。。。
  8. Json的学习
  9. jsp页面传中文到后台乱码怎么办?
  10. WPF 主窗口关闭时结束所有相关线程
  11. sublime text3中emmet插件的使用
  12. makefile中的shell编程注意点
  13. 使用u盘重装双系统中的乌班图
  14. Ubuntu16.04 下虚拟环境的创建与使用
  15. Merge Interval leetcode java
  16. postgresql模式创建、修改、删除
  17. 完成了C++作业,本博客现在开始全面记录acm学习历程,真正的acm之路,现在开始
  18. 百度地图中使用mouseover事件获取经纬度时无法拿到鼠标所在位置的经纬度。
  19. LeetCode 中级 - 第k个排列(60)
  20. JavaScript的toString()

热门文章

  1. R Tidyverse dplyr包学习笔记2
  2. 【音乐欣赏】《I Don&#39;t Even Care About You》 - Missio
  3. 关于微信小程序
  4. django 完成登录功能
  5. centost redhat 卸载rpm以及yum install 的正确姿势
  6. 208. 实现 Trie (前缀树)
  7. P4562 [JXOJ2018]游戏
  8. 使用BeautifulSoup爬取汽车之家新闻
  9. goahead 流程
  10. qt5.9.0 msvc2015优雅的崩溃:dumpfile