SpringBoot整合MyBatis遇到的问题(一)

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xust.mapper.UserMapper.queryUserList
 

我找了好久没找到问题在哪里,如果大家有知道的还请帮帮忙看一下,我也会继续找的

SpringBoot整合MyBatis遇到的问题(一)SpringBoot整合MyBatis遇到的问题(一)

在这里我也不知道为什么无法识别别名

SpringBoot整合MyBatis遇到的问题(一)

SpringBoot整合MyBatis遇到的问题(一)SpringBoot整合MyBatis遇到的问题(一)

我也找不出问题出在哪里........................

 

 

---------------------------------------------------------------------------------------------------------------------------------------------------------

 

问题解决了

解决方法

我以前是UserMapper.xml是放在resources目录下的mapper里面,现在把UserMapper.xml移动到和UserMapper一个包下,就可以了。

但是为什么非要一个包下呢?

我以前做MyBatis,映射文件也是在resources里面也可以运行啊,为什么SpringBoot整合MyBatis就不行了

还有别名的问题虽然是红名,但是并不影响,可我还是受不了,强迫症,