---
title: "com.ibatis.sqlmap.client.SqlMapException: There is no statement named 语句名 in thi"
author: "hackbomb"
date: "2011-03-18T15:06:00Z"
tags: []
categories: ["企业架构"]
slug: "com-ibatis-sqlmap-client-sqlmapexception-there-is-no-statement-named-in-thi"
draft: false
lastmod: "2011-03-18T15:06:00Z"
id: 966566
url: "https://hackbomb.iteye.com/blog/966566"
---

用ibatis的同行估计都遇到过这个问题，有时候怎么检查都找不到错在哪里，我和大家一样了！:-)这里提供我的解决方法：  
    首先，确定xxx是否存在，（这个好像是废话！）就是说有可能把id写错了  
    然后，看看sqlmap的useStatementNamespaces也就是命名空间是否  是         true,如果没有写,则默认为false  
    最后还有一种可能是xml最后&lt;/sqlmap&gt;有几个空行造成的,请删除