sonofbaba 2017-08-26 16:04 采纳率: 3.7%
浏览 1060

用maven搭建的工程mybatis报错百思不得解

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



但依然报错 求各位大佬看看

  • 写回答

5条回答 默认 最新

  • legendCoder 2017-08-27 00:59
    关注

    看看你dao层接口是不是有selectByExample方法,mapper里面是不是有id为selectByExample的sql语句,最后检查一下接口是不是和mapper文件关联上了。

    评论

报告相同问题?