Mybatis-plus查询问题 There is no getter for property named ‘ew’ in ‘class:query.QueryWrapper

在使用MyBatisPlus的QueryWrapper进行查询时遇到错误:'There is no getter for property named 'ew' in class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper'。该问题通常由于缺少 '@Mapper' 注解导致。解决方案是在mapper层为相关接口添加 '@Mapper' 注解,确保MyBatis能正确扫描并处理Mapper接口。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题记录

querywapper查询问题

在使用querywapper查询过程中使用以下语法

在这里插入图片描述

出现以下错误:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: 
There is no getter for property named 'ew' in 
'class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper'
	at org.mybatis.spring.MyBatisExceptionTranslator.
	translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.
	invoke(SqlSessionTemplate.java:446)
	at com.sun.proxy.$Proxy105.update(Unknown Source)
	at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:294)
	at com.baomidou.mybatisplus.core.override.PageMapperMethod.
	execute(PageMapperMethod.java:73)
	at com.baomidou.mybatisplus.core.override.PageMapperProxy.
	invoke(PageMapperProxy.java:64)
	at com.sun.proxy.$Proxy106.delete(Unknown Source)

解决方案

加上以下注解即可在mapper层
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值