can not find lambda cache for this property [xxx] of entity
can not find lambda cache for this property [xxx] of entity
当我们在使用 "mybatisPlus"插件中的"LambdaQueryWrapper
意思是在我们的使用lambda时当前类中没有找到该字段信息。
异常信息如下

找到当前类发现 有个注解 "@TableField(exist = false)" 表示非数据库字段信息

把该注解删除掉就可以使用了
使用建议
当只查询或当前表中的字段作为查询条件时候可以用 "LambdaQueryWrapper
本文来自博客园,作者:lanwf,转载请注明原文链接:https://www.cnblogs.com/lccsdncnblogs/p/19044853

浙公网安备 33010602011771号