---
title: "Result Maps collection does not contain value for com.xx.xx"
author: "hae"
date: "2015-01-09T17:45:23Z"
tags: []
categories: ["数据库"]
slug: "result-maps-collection-does-not-contain-value-for-com-xx-xx"
draft: false
lastmod: "2015-01-09T17:45:23Z"
id: 2174488
url: "https://hae.iteye.com/blog/2174488"
---

Result Maps collection does not contain value for com.xx.xx

 

出现上述错误 主要是因为你的select标签内部的resultMap属性指向的不正确

在sql文件中只要有一个resultMap或resultType属性指向错误，则在这个文件中其余正确的语句也不能执行，

所以在出现上述错误时，可能不是当前正在执行的语句的错误，而是该文件中其它语句映射错了

认真检查其它语句。