TTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.mapper.TbItemMapper.selectByExample
严重: Servlet.service() for servlet [taotao-manager] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.mapper.TbItemMapper.selectByExample] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.mapper.TbItemMapper.selectByExample
at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:18
9) 其中我在mapper里的pom.xml中加入了build
src/main/java
/*.properties
/*.xml
false
但依然报错 求各位大佬看看
用maven搭建的工程mybatis报错百思不得解
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
5条回答 默认 最新
legendCoder 2017-08-27 00:59关注看看你dao层接口是不是有selectByExample方法,mapper里面是不是有id为selectByExample的sql语句,最后检查一下接口是不是和mapper文件关联上了。
解决 无用评论 打赏 举报