Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
2017-07-21 17:04
786 查看
Exception:Request processing failed; nested exception
is org.apache.ibatis.binding.BindingException
分类:异常处理(5052) (4)
异常
在测试Spring MVC+Mybatis整合时,运行 Maven build -> tomcat7:Run 遇到如下异常从异常信息上看,是找不到mapper对应的xml文件,于是我到target目录去查找,是否存在mapper对应的xml文件,发现xml 文件并不在target目录下
解决方案
修改easybuy-manager-mapper的pom文件在Pom文件添加如下内容:
[html] view
plain copy
<!-- 如果不添加此节点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 build字节码时把资源文件也一起生成.
原文作者 http://blog.csdn.net/Evan_Leung/article/details/50670780
相关文章推荐
- HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx
- [Java] Request processing failed; nested exception is org.apache.ibatis.binding.Bin
- 问题3:HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding
- 异常:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- ssm整合问题Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingExc
- HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- Request processing failed; nested exception is org.apache.ibatis.binding.BindingException:
- Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid b
- ssm整合框架 idea运行出现错误 Request processing failed; nested exception is org.apache.ibatis.binding.BindingE
- [springMVC - 1A] - Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException
- Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException
- Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException:
- Invocation of init method failed; nested exception is org.apache.ibatis.binding.BindingException: In
- Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationExcepti
- 关于spring+springMVC+mybatis+maven搭建中的nested exception is org.apache.ibatis.binding.BindingException
- 错误:严重: Servlet.service() for servlet [appServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram
- Request processing failed; nested exception is org.springframework.dao.TransientDataAccessResourceEx