Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 > 报错:Invalid bound statement (not found): edu.cqcet.mapper.UserMapper.editUser ?

报错:Invalid bound statement (not found): edu.cqcet.mapper.UserMapper.editUser ?

提问于 2023-12-08 01:28:01
回答 0关注 0查看 62

点击页面按钮时间对人员进行离职办理,即修改用户的状态,报一下的错误

控制台报错输出
控制台报错输出

检查后controller层和service层写的方法感觉都没啥问题

jsp页面:

controller层:

service层:

回答

成为首答用户。去 写回答
相关文章
Invalid bound statement (not found)
报这个错,请检测以下步骤: mapper.xml的namespace要写所映射接口的全称类名。 mapper.xml中的每个statement的id要和接口方法的方法名相同 mapper.xml中定义的每个sql的parameterType要和接口方法的形参类型相同 mapper.xml中定义的每个sql的resultType要和接口方法的返回值的类型相同 mapper.xml要和对应的mapper接口在同一个包下 mapper.xml的命名规范遵守: 接口名+Mapper.
hbbliyong
2018/12/14
6.3K0
Mybaties Plus报错 Invalid bound statement (not found)
在原来项目中使用Mybaties plus 一开始没有问题, 通过逆向工程生成的代码也可以使用. 当数据库增加一列之后启动没问题, 但是在执行SQL的时候报错, 详细信息贴在下面
时间静止不是简史
2022/01/05
4K0
Invalid bound statement (not found)报错的可能原因
1.检查xml文件所在package名称是否和Mapper interface所在的包名 或者 mapper的namespace写的不对!!!注意修改。 2.UserDao的方法在UserDao.xml中没有,然后执行UserDao的方法会报此 3.UserDao的方法返回值是List,而select元素没有正确配置ResultMap,或者只配置ResultType! 4.如果你确认没有以上问题,请任意修改下对应的xml文件,比如删除一个空行,保存.问题解决 5.看下mapper的XML配置路径是否正确 6
孙晨c
2020/05/27
8.9K0
mybatis绑定错误-- Invalid bound statement (not found)
原因:mybatis出现这个问题,通常是由Mapper interface和对应的xml文件的定义对应不上引起的,这时就需要仔细检查对比包名、xml中的namespace、接口中的方法名称等是否对应。
ydymz
2018/09/10
7810
[MyBatis]诡异的Invalid bound statement (not found)错误
在eclipse没有问题,在IDEA 不能使用 提示这个错误 原因 idea 默认的maven打包 xml没有打包进去 解决方法:在pom.xml 种添加 排除xml 的配置 <build>
冷冷
2018/02/08
7950
[MyBatis]诡异的Invalid bound statement (not found)错误
springboot 集成mybatis Invalid bound statement (not found)异常
在使用springboot集成mybatis的过程中出现一下异常。经过跟踪发现其实异常与springboot无关,主要是mybatis配置文件的原因。大家遇到类似问题,可直接进行定位。
程序新视界
2022/05/06
1.2K0
Mybatis异常_03_Invalid bound statement (not found)
这是因为我一个web工程依赖了两个jar工程,而这两个jar工程 mapper.xml文件的目录结构相似,并且映射路径也相同,这导致mybatis只扫描了其中一个jar工程的xml,而不扫描另一个的。
shirayner
2018/08/10
4230
Mybatis异常_03_Invalid bound statement (not found)
Mybatis异常_01_Invalid bound statement (not found)
异常信息:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.mapper.TbItemMapper.selectByExample
shirayner
2018/08/10
2960
Mybatis异常_01_Invalid bound statement (not found)
Mybatis在idea中错误:Invalid bound statement (not found)
学习mybatis的过程中,测试mapper自动代理的时候一直出错,在eclipse中可以正常运行,而同样的代码在idea中却无法成功。虽然可以继续调试,但心里总是纠结原因。百度了好久,终于找到一个合适的原因。参考:http://blog.csdn.net/z69183787/article/details/48933481; 原因:(参考:http://www.linuxidc.com/Linux/2015-06/118877.htm) IDEA的maven项目中,默认源代码目录下的xml等资源文件并不会
Ryan-Miao
2018/03/13
2.2K0
解决MyBatis报错 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
3、去看输出目录中有没有xml映射文件,maven项目默认把资源文件放在src/main/resources下,默认只识别src/main/resources下的资源文件。
Vincent-yuan
2021/12/31
3.5K0
解决MyBatis报错 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
解决 : org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.tanj.mapper.SendDetailsMapper.selectAllRecommendRecord
微风-- 轻许--
2022/04/13
8730
mybatis-plus自带方法调用出现 Invalid bound statement (not found):
奇怪的现象,自己写的sql能执行,但是调用mybatis-plus中自带的方法却报错 Invalid bound statement (not found):
斯文的程序
2019/12/20
14.2K0
mybatis-plus自带方法调用出现  Invalid bound statement (not found):
IDEA异常解决: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
整合完了SSM开发框架之后,发布的时候出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found。。。
大道七哥
2019/09/10
24.4K2
IDEA异常解决: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
解决问题:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
如果上面的检查过都没有问题,那么可以试下下面操作: 因为它可能是因为 xml文件的编译问题。 可以对比下编译前和编译后的文件。
Vincent-yuan
2021/11/02
18.2K0
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): dao.UserDao.selectU
1、先看注解是否都被扫描了 看mybatis-config 核心配置文件 是不是把mapper.xml的 映射路径写对拉。
宁在春
2022/10/31
7500
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): dao.UserDao.selectU
出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误的筛查
这个错误新手经常犯(说的就是我),也就是 dao 接口和 mapper 文件没有绑定映射上。问题很多,我收集了网上大部分遇到的解决方法。照着下面排查就行:
归思君
2023/10/16
3630
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.gong.mybatis.da
在mybatis全局配置文件中利用mappers中的mapper中的class属性配置sqll映射文件时出现该问题:以EmployeeMapper.java和EmployeeMapper.xml为例
西西嘛呦
2020/08/26
1.5K0
单元测试出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
在web项目中,通过url访问,里面的mybatis映射能够正常工作,但是运行junit单元测试时却出现“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”异常,仔细研究pom文件发现在build里面只包含了src/main/resource目录下的xml文件,而没有包含子目录下的xml文件,添加后正常:
johnhuster的分享
2022/03/28
8740
Spring Boot 集成 Mybatis 多数据源配置后出现 Invalid bound statement (not found)
项目是使用xml方式配置数据源的,Spring Boot 集成的mybatis starter里面的 MybatisAutoConfiguration 自动加载了 mapper,导致另外的数据源对应的mapper没有出来?
一个会写诗的程序员
2020/07/31
2.2K0
踩坑集锦之Mybaits Invalid bound statement异常
Invalid bound statement 算是Mybaits中比较常见的一个异常了:
大忽悠爱学习
2023/10/11
1.8K0
踩坑集锦之Mybaits Invalid bound statement异常

相似问题

ThinkPHP报错Class 'PDO' not found ?

21K

Invalid character found in method name?

1761

引用实时音频报错Component is not found in path?

1679

node.js安装apidoc报错command not found?

11.8K

为什么语音识别报错Invalid audio file?

0147
相关问答用户
腾讯云TDP | TDP会员擅长3个领域
平安资管 | 架构师擅长4个领域
擅长3个领域
擅长5个领域
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档