有关 mapper xml 文件扫描问题

比如启动时或执行SQL时报如下几个错误

  • Property ‘mapperLocations’ was not specified or no matching resources found -或 Invalid bound sta…

  • Springboot项目下执行SQL时mybatis报错:Invalid bound statement (not found)

  • This application has no explicit mapping for /error, so you are seeing this as a fallback.

很有可能是因为 application.yml/application.properties 文件配置问题,没有写正确,最好重新写一遍,如果仅仅是小地方改改,很有可能不管用,浪费时间!

发表评论