mybatis:方法需要传入多个参数时,报错:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'p_v_id' not
来源:互联网 发布:iphone主题软件下载 编辑:程序博客网 时间:2024/06/05 21:26
mybatis:方法需要传入多个参数时,报错:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'p_v_id' not
错误sql如下:
@Delete("delete from iconfig where p_v_id=#{p_v_id} and env_id=#{env_id} and conf_id=#{conf_id};")public void deleteIConfig(<String p_v_id,@Param("env_id")String env_id,@Param("conf_id")String conf_id);
绿色标识的参数p_v_id没有带@Param注解,导致执行sql时无法辨识p_v_id字段。
修复方式:
@Delete("delete from iconfig where p_v_id=#{p_v_id} and env_id=#{env_id} and conf_id=#{conf_id};")public void deleteIConfig(@Param("p_v_id")String p_v_id,@Param("env_id")String env_id,@Param("conf_id")String conf_id);
0 0
- mybatis:方法需要传入多个参数时,报错:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'p_v_id' not
- mybatis方法多个参数时报错:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found
- SSM报错Caused by: org.apache.ibatis.binding.BindingException: Parameter 'id' not found
- mybatis报错nested exception is org.apache.ibatis.binding.BindingException: Parameter 'idList' not foun
- mybatis多参数查询问题:org.apache.ibatis.binding.BindingException: Parameter 'name' not found. Available par
- mybatis多参数查询问题:org.apache.ibatis.binding.BindingException: Parameter 'name' not found. Available par
- Caused by: org.apache.ibatis.binding.BindingException: Parameter 'offset' not found. Availabl
- Caused by: org.apache.ibatis.binding.BindingException: Parameter '__frch_item_0' not found. Availabl
- Caused by: org.apache.ibatis.binding.BindingException: Parameter 'offset' not found. Available param
- Caused by: org.apache.ibatis.binding.BindingException: Parameter 'stuId' not found. Available parame
- mybatis 报错org.apache.ibatis.binding.BindingException
- SSMF maven项目 mybatis报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found
- mybatis的 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 报错。
- maven 项目,mybatis报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- spring mybatis集成报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- mybatis报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 解决方法
- MyBatis报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- spring+mybatis整合报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- #pragma once与#ifndef两种防止头文件二次编译的区别
- C语言练习
- 字符串按照多个字符分割
- 关于myBatis
- 《PCL点云库学习&VS2010(X64)》Part 19 PCL1.72(VTK6.2.0)PCL程序计时
- mybatis:方法需要传入多个参数时,报错:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'p_v_id' not
- Linux--网络基础CCNA
- 浅谈java 中static关键字。
- HTTP/2 新特性浅析
- Apache Flume介绍
- FFMpeg编译之路
- Win32常用脚本
- STL容器之删除元素,迭代器失效
- 制作U盘启动盘