SpringBoot MyBatis 运行时找不到mapper下的方法
报错
1 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
如果你运行时在classes中找不到你对应的 mapper.xml ,那么可以看看别人的方法。位置如图
我这是存在 mapper.xml文件
如果mapper中的方法可以转到你对应的方法中,代码也基本检查无误,那么原因可能是少了配置。只需要在 application.properties 文件中添加这两行代码