之前搞了有一年多的大数据,web好多东西有点忘记了,最近准备重新看一下,自己用idea建了个项目试试,碰到个问题,后来仔细想了下找到了解决办法,这里记录一下。
创建一个maven web工程,项目结构如下
就是想实现一个简单的查询功能,把spring mvc、spring 和 mybatis整合起来。
部署并启动项目后,总是报一个错误:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
09-Apr-2017 17:42:20.864 严重 [http-nio-8080-exec-4] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.runtu.dao.UserMapper.selectUserById] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.runtu.dao.UserMapper.selectUserById
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.Mappe