码上敲享录 > mybatis的常见问题 > Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

上一章章节目录下一章 2022-01-20已有916人阅读 评论(0)

Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)


解决方法:

检查了mybatis的sql  xml文件都对,就是上面的错误,最后发现是我的mapper xml文件命名不符合项目设置的规则。以下springboot设置了xml要以Mapper结尾。

server:

 port: 3055

mybatis:

 mapper-locations: classpath:mapper/*Mapper.xml

logging:

 config: classpath:log/logback-custom.xml


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交