org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): org.example.mapper.gamesMapper.SelectAll org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:235) org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:53) org.apache.ibatis.binding.MapperProxy.lambda$cachedInvoker$0(MapperProxy.java:115) java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) org.apache.ibatis.binding.MapperProxy.cachedInvoker(MapperProxy.java:102) org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85) jdk.proxy4/jdk.proxy4.$Proxy31.SelectAll(Unknown Source) org.example.service.gamesService.SelectAll(gamesService.java:18) org.example.web.selectAllServlet.doGet(selectAllServlet.java:17) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.
时间: 2023-10-19 14:07:39 浏览: 151
JAVA之ibatis2.3.X.ppt
这是一个 Mybatis 的异常信息,提示绑定的 SQL 语句 org.example.mapper.gamesMapper.SelectAll 无效,找不到对应的语句。可能是 mapper 文件中没有定义该语句,或者定义的语句名不正确。建议检查 mapper 文件中的语句定义是否正确,并且与代码中调用的语句名称一致。如果仍有问题,可以查看 Tomcat 日志的完整堆栈跟踪信息,找到更详细的错误信息。
阅读全文