测试出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.suny.dao.Se
本人小白刚学习java1个月,今天在做一个web的秒杀项目,在运行时出现如下错误
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.suny.dao.SeckillMapper.reduceNumber
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:230)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:48)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58)
at com.sun.proxy.$Proxy17.reduceNumber(Unknown Source)
at com.suny.dao.SeckillMapperTest.reduceNumber(SeckillMapperTest.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
最后发现是applicationContext-dao.xml配置错误,一直报红,折腾一下午,网上试了多种方式无果
最后发现两个包名一致导致扫描不成功,最后将其中一个改了名字才成功加载,看到久违的绿色。
测试出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.suny.dao.Se相关推荐
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.qiang.dao.UserM
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.qiang.dao.UserM ...
- 【踩坑】遇到 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 报错...
今天在重做 iblog 客户端时,测试接口情况,发现了 org.apache.ibatis.binding.BindingException: Invalid bound statement (not ...
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
spring+mybatis 提示以下错误: org.apache.ibatis.binding.BindingException: Invalid bound statement (not foun ...
- 解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):xxx问题
文章目录 1. 复现问题 2. 分析问题 2.1 检查启动类的配置 2.2 检查xml文件对应java类的配置是否有误 2.3 检查application.yml文件的mybatis配置是否有误 2. ...
- mybatis配置时出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)...
如果出现: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 一般的原因是Mapper i ...
- mybatis-plus自定义mapper报org.apache.ibatis.binding.BindingException: Invalid bound statement(not found)
今天在springboot的项目中,需要用到自定义的mapper,之前一直使用mybatis-plus自动生成的mapper,一直可以正常使用,今天因为需求需要,自定义了mapper,但是一直报这个错 ...
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): dao.UserDao.selectU
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): dao.UserDao.selectU ...
- 解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误 2018年07月23日 16:5 ...
- 解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) ...
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. org.apache.ibatis.binding.BindingException: Invali ...
最新文章
- DataGridView打印类
- 如何在Windows 2000的域环境中自动分发软件
- vscode设置默认新建html,VScode修改默认生成的HTML模板的方法
- yum 更新_CentOS7 - 使用yum-cron自动更新软件
- wxWidgets:wxCustomBackgroundWindow<W> 类模板用法
- 《深入理解Java函数式编程》系列文章
- 计算机简单故障时的排除方法,电脑简单故障排除解决办法大全
- Linux的ping用python,python与linux中的非特权ping IPPROTO_ICMP
- 本人psp2000和psp3000都亲自试验过,没问题,刷完可以关机,能读取ISO文件,具体某些游戏可能不能运行还需要自己实践。
- STM8L152的LCD模块原理及驱动
- 初始JavaScript
- Label的常用属性设置和使用
- 如果应用闪退,怎么获取相关日志?
- 流放者柯南rust_《流放者柯南》评测8.0分 胯下生风的沙盒生存游戏
- 微信收款码0.2~0.35%费率3分钟开通方法微信商家收款码快速申请
- 魔坊APP项目-25-种植园,植物的状态改动、当果树种植以后在celery的异步任务中调整浇水的状态、客户端通过倒计时判断时间,显示浇水道具
- 学习笔记-Java并发(一)
- Linux 心路历程
- html中如何实现a标签的点击事件
- iView Table合并单元格(行、列)
热门文章
- TL-WR941N V2 漏洞
- 三星java遗忘的勇士_顺位不高的无名小辈,敢打敢拼的悍将,永不放弃的代表人物!...
- 汇编语言中逻辑运算符
- 【c++面向过程实验6】函数
- Zimbra 8.7.11规则:只能发送内部邮件
- c 语言编辑器 win7旗舰版,如何使用大地win7旗舰版内置字符编辑程序
- 火焰焰心matlab,火焰心_刘德华_高音质在线试听_火焰心歌词|歌曲下载_酷狗音乐...
- 市盈率指标详解及相关文献概述
- Redis基础笔记(下)
- 安卓逆向之双剑合璧实现内存扫描