Mybatis-plus查询问题 There is no getter for property named ‘ew’ in ‘class:query.QueryWrapper
  0ZwfR6X6Muxs 2023年11月02日 45 0



目录标题

  • 问题记录
  • querywapper查询问题
  • 解决方案


问题记录

querywapper查询问题

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

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

出现以下错误:

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层

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


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
0ZwfR6X6Muxs