首页 > Web开发 > 详细

mybatis逆向工程 资源未找到错误 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

时间:2020-05-25 17:47:40      阅读:54      评论:0      收藏:0      [点我收藏+]

解决mybatis中的org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

1、一般的原因是Mapper interface和xml文件的定义对应不上,需要检查包名,namespace,函数名称等能否对应上

2、使用你想工程的时候,mapper接口和xml文件在同一个路径下,想要移动xml文件时候先要在resources手动建一个mapper文件夹,注意:java下的mapper文件夹是包,而resource是下是文件夹,不能直接将java下的

mapper包复制到resources下,这样会造成找不到资源。--在yml 或properties 配置 

mybatis:
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  mapper-locations: /mapper/*.xml

 

mybatis逆向工程 资源未找到错误 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

原文:https://www.cnblogs.com/alomsc/p/12958046.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!