问答详情
源自:2-4 Mybatis自动生成器使用方式

无效的绑定语句接口和xml没有绑定

白标错误页面

此应用程序没有/ error的显式映射,因此您将此视为回退。

Sun May 19 16:40:08 CST 2019

出现意外错误(type = Internal Server Error,status = 500)。

无效的绑定语句(未找到):com.miaoshaproject.dao.UserInfoMapper.selectByPrimaryKey


Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Sun May 19 16:40:08 CST 2019

There was an unexpected error (type=Internal Server Error, status=500).

Invalid bound statement (not found): com.miaoshaproject.dao.UserInfoMapper.selectByPrimaryKey


后台报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.miaoshaproject.dao.UserInfoMapper.selectByPrimaryKey

org.apache.ibatis.binding.BindingException:无效的绑定语句(未找到):com.miaoshaproject.dao.UserInfoMapper.selectByPrimaryKey

提问者:君莫泣 2019-05-19 16:42

个回答

  • 月小哥
    2019-05-21 23:53:36
    已采纳

    它说未找到selectByPrimaryKey这个方法,先确认一下UserInfoMapper这个类里是不是存在这个方法