目录标题
- 问题记录
- querywapper查询问题
- 解决方案
问题记录
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层