service层链接mapper层报错,找不到Mapper层中的方法
报错:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.mapper.TestMapper.getUser
报错问题由application.yml文件引起的
更改application.yml文件就能解决
如果是红框的将xml文件放在resources/mapping文件夹下
如果是篮框的将xml放在com/example/demo/mapper/xml/文件夹下这样就好了