问题3:HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding
2017-07-11 21:36
1046 查看
异常出现场景:通过Maven搭建项目并且使用到SSM框架时。
出现原因: 500码类型的错误,本次可能是在持久层的处理上,即我们使用注解方式系统在进行自动扫描mapper.xml文件时并没有扫描到,进而访问请求没有匹配到。Maven在对于放在普通包即src/main/java包下面的文件只对于java文件进行处理,如果mapper.xml文件放在该目录结构下编译后是不会去加载的,只有放在src/main/resouces文件目录下的文件、.xml等才会全部处理。
解决:手动在该项目的pom.xml文件中配置,使其加载src/main/java下的.xml文件。配置如下:
出现原因: 500码类型的错误,本次可能是在持久层的处理上,即我们使用注解方式系统在进行自动扫描mapper.xml文件时并没有扫描到,进而访问请求没有匹配到。Maven在对于放在普通包即src/main/java包下面的文件只对于java文件进行处理,如果mapper.xml文件放在该目录结构下编译后是不会去加载的,只有放在src/main/resouces文件目录下的文件、.xml等才会全部处理。
解决:手动在该项目的pom.xml文件中配置,使其加载src/main/java下的.xml文件。配置如下:
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources> </build>
相关文章推荐
- HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx
- 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.BindingException: Invalid bound statement (not found)
- ssm整合问题Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingExc
- HTTP Status 500 - Request processing failed; nested exception is org.hibernate.exception.GenericJDBC
- Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExc
- ssm整合框架 idea运行出现错误 Request processing failed; nested exception is org.apache.ibatis.binding.BindingE
- 异常:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- [Java] Request processing failed; nested exception is org.apache.ibatis.binding.Bin
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram
- Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram
- HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExc
- Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid b
- HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExc
- Request processing failed; nested exception is org.apache.ibatis.binding.BindingException:
- HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException
- [springMVC - 1A] - Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException
- HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: