当前使用版本(必填,否则不予处理)

3.4.2

该问题是如何引起的?(确定最新版也有问题再提!!!)

1、对BaseMapper、ServiceImpl、IService做了一层继承 public interface SuperMapper extends BaseMapper {

}

public abstract class BaseServiceImpl, T> extends ServiceImpl {

}

public interface IBaseService extends IService {

} 2、本案例是springcloud下对服务层和接口层进行分离为独立模块,在接口工程模块的Controller层面,在3.4.2版本上使用lambda更新构造器set出现报错。 public class ProcessController { LambdaUpdateWrapper updateWrapper = new LambdaUpdateWrapper<>(); updateWrapper.eq(HyperspectralItem::getId, hyperspectralItem.getId()) .set(HyperspectralItem::getBeginTakeTime, beginTakeTime) .set(HyperspectralItem::getEndTakeTime, endTakeTime);

}

重现步骤(如果有就写完整)

报错信息

com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: can not find lambda cache for this entity

Comment From: miemieYaho

只有含有mapper层的模块才能使用Lambda模式

Comment From: PingYufeng

谢谢