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

 2023-02-25    357  

主要错误信息如下:

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

Exception: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 found),希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对77isp云服务器技术网的支持!

原文链接:https://77isp.com/post/34413.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。