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

解决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
原文地址:https://www.cnblogs.com/alomsc/p/12958046.html