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

3.4.2

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

自己定义了一个抽象类 去集成 hibernate 的 dao,mybatis-plus的Mapper,Entity 和 Mybatisplus的ServiceImpl 在实现类里面使用 saveOrUpdate 提示 can not execute ...... not find cache of TableInfo for entity

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

编写一个抽象类 abstract class AbstractBaseService,M extends BaseMapper\ ,T extends BaseEntity\> extends ServiceImpl implements BaseService

然后在 serviceImpl extends AbstractBaseService implements service{

方法(){ saveorUpdate(xxxxxx); }

}

报错信息

提示 can not execute ...... not find cache of TableInfo for entity

问题主要出现在 ServiceImpl类里面 protected Class entityClass = this.currentModelClass(); //获取第0个 protected Class mapperClass = this.currentMapperClass(); //获取第1个

Comment From: qmdx

高版本该问题已经解决升级到 3.4.3.4 +