springboot 踩雷 invalid bound statement (not found): com.atguigu.springboot.mapper.employeemapper.getempbyid

排了两个小时的雷:配置文件的路径时正确的、调用方法名对应到xml文件的id也是正确的,头快秃的时候发现,为了配置又新建了application.yml文件,所有的配置操作都是在application.yml中进行的。

springboot 踩雷 invalid bound statement (not found): com.atguigu.springboot.mapper.employeemapper.getempbyid

所以不管在application.yml中配置的mapper-location与它冲突了,导致系统无法找到对应的Mapper.xml文件。把application.properties中的内容注释掉,重新启动,问题解决!

Original: https://www.cnblogs.com/wyhluckdog/p/13491848.html
Author: wyhluckydog
Title: springboot 踩雷 invalid bound statement (not found): com.atguigu.springboot.mapper.employeemapper.getempbyid

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/540927/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球