org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.springbootmybatis.mapper.UserMapper.findAll
可以看出这是一个非法绑定问题,没找到UserMapper.xml
是因为在yml文件里的这个配置资源resource夹下的xml文件格式写错了。
这是我从prop文件下拷贝过来的,搞半天没发现格式问题,cao
正确格式是这样的,
就这我在test里捣鼓了一小时,就一个回车解决的事情。绝了