无法绑定com.mgh.mapper.SysUserMapperCustom.queryUserSimplyInfoById

来源:8-4 整合MyBatis - 自定义mapper的实现

weixin_慕慕1553587

2019-05-11 14:37

访问这个页面时出错,求解

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mgh.mapper.SysUserMapperCustom.queryUserSimplyInfoById

at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:225)

at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:48)

at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65)

at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58)

at com.sun.proxy.$Proxy73.queryUserSimplyInfoById(Unknown Source)

at com.mgh.service.impl.UserServiceImpl.queryUserByIdCustom(UserServiceImpl.java:62)

at com.mgh.controller.MyBatisCRUDController.queryUserSimplyById(MyBatisCRUDController.java:79)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

https://img3.mukewang.com/5cd66d040001699c07550230.jpg

https://img.mukewang.com/5cd66d050001281105330348.jpg

https://img.mukewang.com/5cd66d05000120fe10510429.jpg


写回答 关注

2回答

  • 高喜欠
    2019-11-28 14:30:12

    BindingException: Invalid bound statement (not found)

  • 君默笑
    2019-06-05 22:26:21

    这一版本应该都有这个问题,我的也userMapperCustom无法调用queryUserSimplyInfoById,同样的错误

SpringBoot开发常用技术整合

SpringBoot 极简开发的框架整合利器

102209 学习 · 530 问题

查看课程

相似问题