---
title: "java.lang.IllegalArgumentException: Mapped Statements collection does not contai"
author: "af8991"
date: "2011-09-02T11:38:59Z"
tags: []
categories: ["数据库"]
slug: "java-lang-illegalargumentexception-mapped-statements-collection-does-not-contai"
draft: false
lastmod: "2011-09-02T11:38:59Z"
id: 1164156
url: "https://af8991.iteye.com/blog/1164156"
---

Mybatis报错原因

 

java.lang.IllegalArgumentException: Mapped Statements collection does not contain value

 

 

发现问题是

 

list = sqlSession.selectList("xxx.xxxMapper.getCardList", xxx);

 

后面没跟.getCardList 这个XML里面ID的方法