Exception:HTTP Status 500 - org.apache.ibatis.binding.BindingException: Invalid bound statement (not

Posted lashou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Exception:HTTP Status 500 - org.apache.ibatis.binding.BindingException: Invalid bound statement (not相关的知识,希望对你有一定的参考价值。

主要错误信息如下:

HTTP Status 500 - org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.RuntimeException: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

 

原因:

在MyBatis的配置文件   mapper.xml 中,将返回类型为  Map 的数据定义成了resultMap

 <select id="selectAdminById" parameterType="java.lang.Integer"  resultMap="Map" >
    select  ......   from user   where id= #{}
  </select>

正确的定义应该为:resultType=""

 

以上是关于Exception:HTTP Status 500 - org.apache.ibatis.binding.BindingException: Invalid bound statement (not的主要内容,如果未能解决你的问题,请参考以下文章

HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException:

HTTP Status 500 - Servlet execution threw an exception

Tomcat报HTTP Status 500 - Servlet execution threw an exception错,请大神指点,急急急!!!!

解决思路HTTP Status 500 Type Exception ReportMessage Request processing failed; 已解决

项目中访问controller报错:HTTP Status 500 - Servlet.init() for servlet spring threw exception

HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException(示例代码