Mybatis异常--There is no getter for property named 'XXX' in 'class java.lang.String'
2024-10-19 01:32:43
第一种
在service层加@Param(value="ip")
void deleteIpsetup(@Param(value="ip")String ip) throws Exception;
第二种
xml层 字段改为_parameter(不管注入的是什么字段都要改为_parameter)
<delete id="deleteIpsetup" parameterType="String">
delete from b_nc_ipsetup where
<if test = " _parameter!=null and_parameter!='' ">
and leftvalue like '${_parameter}%'
</if>
</delete>
最新文章
- shell不能执行su 后的脚本
- C#单纯的字母数字ASCII码转换
- JS事件详解
- [codevs1027]姓名与ID
- Silverlight
- Android APK反编译就这么简单 详解(附图)
- Web Design:给实验室UI们的一堂课(下)
- 系统级性能分析工具 — Perf
- 【VMware】VMware Workstation中虚拟机网络配置
- python学习之路网络编程篇(第二篇)
- android:Android开发不得不收藏的Utils
- python之GIL官方文档 global interpreter lock 全局解释器锁
- 使用Nginx过滤网络爬虫
- JNI学习笔记_Java调用C —— Android中使用的方法
- C++ 补遗
- 【文文殿下】[51nod1469] 淋漓尽致子串
- 使用Loader实时查询本地数据库用法
- Saltstack 命令行:批量覆盖指定文件
- TimesTen LINUX 安装日志
- C#CRC16 Modbus 效验算法
热门文章
- Linux 虚拟机上安装linux系统 (ip:子网掩码,网关,dns,交换机,路由知识回顾)
- django中sqlite迁移mysql
- EurekaClient项目启动报错Invocation of destroy method failed on bean with name &#39;scopedTarget.eurekaClient&#39;: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name &#39;e
- jQuery的选择器中的通配符[id^=&#39;code&#39;]或[name^=&#39;code&#39;]及jquery选择器总结
- SQL反模式学习笔记22 伪键洁癖,整理数据
- 使用navicat连接 mysql时出现client does not support auth...upgrading Mysql Client
- net core体系-web应用程序-4asp.net core2.0 项目实战(任务管理系统)-1项目说明
- spark算子
- 关于jmeter读取CSV文件的详细设置
- using eclipse to write c programe