在编写测试类报错
报错信息:MybatisPlusException: can not find lambda cache for this entity
查看信息得知,使用mybatislpus的wrapper.lambda().set()方法时,无法找到entity
解决方法:
//mockito方法执行前加
TableInfoHelper.initTableInfo(new MapperBuilderAssistant(new MybatisConfiguration(), “”), xxxxDO.class);