org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xuebusi.mapper.TbUserMapper.selectByExample 10 at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:189) 11 at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43) 12 at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58) 13 at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51) 14 at com.sun.proxy.$Proxy19.selectByExample(Unknown Source) 15 at com.xuebusi.service.impl.UserServiceImpl.getUserById(UserServiceImpl.java:66)
一直报找不到mapper错误,解决了好几天,从网上找到解决方法
再porn.xml里加
<build>
<resources>
<resource>
<directory>src/main/Java</directory>
<includes>
<include>**/mapper/*Mapper.xml</include>
</includes>
</resource>
</resources>
</build>