mybatis错误:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
来源:互联网 发布:工程预算套定额软件 编辑:程序博客网 时间:2024/04/29 18:23
type Exception report
message Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ydh.redsheep.test.dao.UserMapper.select
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ydh.redsheep.test.dao.UserMapper.select
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:980)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ydh.redsheep.test.dao.UserMapper.select
org.apache.ibatis.binding.MapperMethod
com.ydh.redsheep.test.service.impl.TestServiceImpl.findOne(TestServiceImpl.java:23)
com.ydh.redsheep.test.controller.TestController.test(TestController.java:24)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:817)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:731)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.26 logs.
原因,xml文件没有编译到指定位置,需要在maven中指定
解决办法
maven 中 build标签中加入
<build> <finalName>springmvc_mybatis</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> <resources> <resource> <directory>${basedir}/src/main/resources</directory> <filtering>true</filtering> </resource> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> </resource> </resources></build>
- mybatis错误:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- Request processing failed; nested exception is org.apache.ibatis.binding.BindingException:
- 异常: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整合问题Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingExc
- ssm整合框架 idea运行出现错误 Request processing failed; nested exception is org.apache.ibatis.binding.BindingE
- [Java] Request processing failed; nested exception is org.apache.ibatis.binding.Bin
- nested exception is org.apache.ibatis.binding.BindingException: Invalid boun
- nested exception is org.apache.ibatis.binding.BindingException: Invalid boun
- Invocation of init method failed; nested exception is org.apache.ibatis.binding.BindingException: In
- mybatis报错nested exception is org.apache.ibatis.binding.BindingException: Parameter 'idList' not foun
- 关于spring+springMVC+mybatis+maven搭建中的nested exception is org.apache.ibatis.binding.BindingException
- MyBatis 传List参数 nested exception is org.apache.ibatis.binding.BindingException: Parameter 'idList' n
- Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.Bi
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.B
- 代码访问 https 遇到的问题
- UiAutomatorviewer 真机 识别不到
- Android UI之Banner图实现沉浸式(或者app开屏图实现沉浸式)
- Android TypeEvaluator evaluate方法参数解释
- ffmpeg udp推流指定网口
- mybatis错误:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- iOS安全审计入门
- 素数距离问题 时间限制:3000 ms | 内存限制:65535 KB 难度:2 描述 现在给出你一些数,要求你写出一个程序,输出这些整数相邻最近的素数,并输出其相距长度。如果左右有等距离长度素数
- 如何使用夜神模拟器调试ReactNative应用
- Java7中的HashMap详解
- 303. Range Sum Query
- 一路孤独走来
- Java——类与对象
- caffe 学习笔记之solver层