详解mybatis-plus的mapper.xml路径配置的坑-创新互联
mybatis-plus今天遇到一个问题,就是mybatis 没有读取到mapper.xml 文件。
特此记录一下,问题如下:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.husy.mapper.SystemUserMapper.findUserByName at com.baomidou.mybatisplus.core.override.MybatisMapperMethod$SqlCommand.(MybatisMapperMethod.java:242) at com.baomidou.mybatisplus.core.override.MybatisMapperMethod. (MybatisMapperMethod.java:54) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.lambda$cachedMapperMethod$0(MybatisMapperProxy.java:65) at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.cachedMapperMethod(MybatisMapperProxy.java:65) at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:60) at com.sun.proxy.$Proxy72.findUserByName(Unknown Source) at com.husy.service.impl.SystemUserServiceImpl.findUserByName(SystemUserServiceImpl.java:23)
网页名称:详解mybatis-plus的mapper.xml路径配置的坑-创新互联
文章URL:http://ybzwz.com/article/cesjdi.html