大闹天 2022-02-16 10:56 采纳率: 33.3%
浏览 124
已结题

springboot提示Invalid bound statement (not found): com.example.dnwx.mapper.WxUserMapper.getphon

springboot提示Invalid bound statement (not found): com.example.dnwx.mapper.WxUserMapper.getphon,意思就是找不到绑定语句

但是xml文件中namespace都能点击条到mapper了

img


targer也有该文件

img

结果还是报这个

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.dnwx.mapper.WxUserMapper.getphon

这到底是怎么回事

  • 写回答

5条回答 默认 最新

  • CSDN专家-sinJack 2022-02-16 11:27
    关注

    getphon这个方法传了几个参数。
    多个参数,要用@Param()注解绑定。

    img

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(4条)

报告相同问题?

问题事件

  • 系统已结题 2月26日
  • 已采纳回答 2月18日
  • 创建了问题 2月16日