Invalid bound statement (not found): com.taotao.mapper.TbItemMapper.selectByExample: 错误
2018-02-24 14:50
561 查看
Invalid bound statement (not found): com.taotao.mapper.TbItemMapper.selectByExample: 错误
在Maven工程下,想通过controller接收url中的参数Id查询数据库的数据,并且以json形式显示在页面。在浏览器输入url后出现的问题:八月 22, 2016 1:45:22 下午 org.apache.catalina.core.StandardWrapperValve invoke严重: 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.<init>(MapperMethod.java:189)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51)
at com.sun.proxy.$Proxy30.selectByExample(Unknown Source) 原因:找不到mapper的映射文件 解决办法: <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources></build> 以上节点的内容,添加的位置在Maven工程下的父工程里面pom.xml文件中抱歉,我只能根据自己出现的情况说明了,希望能帮到出现同样错误的朋友,同时希望路过的牛人指点。
相关文章推荐
- Invalid bound statement (not found): com.zc.product.dao.IFancyMapper.totalPage
- mybaties错误解决Invalid bound statement (not found): com.yealink.example.dao.UserMapper.getUserByUserInf
- Invalid bound statement (not found):.....sysFunctionDao.getSysFunctionsById...<init>(MapperMethod.ja
- invalid bound statement (not found),大概应该是报mapper.xml中的sql查询和mapper.java中的方法没有绑定成功!
- MyBatis Invalid bound statement (not found)错误
- Invalid bound statement (not found): com.xs.vote.dao.UserDao.get
- mybatis错误:Invalid bound statement (not found): com.prcsteel.peanut.dao.UserDao.selectById
- Invalid bound statement (not found)-Mybatis在idea中错误
- Invalid bound statement (not found): com.bookestore.dao.OrderInfoDao.findList的根本原因及解决方案
- Invalid bound statement (not found): com.yu.test.dao.TaskDao.findById
- Invalid bound statement (not found)错误的可能原因
- maven + mybatis Invalid bound statement (not found) 错误解决
- Invalid bound statement (not found)错误的可能原因
- mybatis invalid bound statement (not found) : com.XXXX
- Invalid bound statement (not found)错误
- Invalid bound statement (not found)
- Invalid bound statement (not found):
- 典型的找不到mapper映射文件的异常 Invalid bound statement 异常
- Invalid bound statement (not found)
- mybatis报错—— Invalid bound statement (not found): com.mapper.EmployeeMapper.updEmp