使用PowerMockito+MyBatisPlus无法mock set()问题记录
报错信息:MybatisPlusException: can not find lambda cache for this entity
查看信息得知,使用mybatislpus的wrapper.lambda().set()方法时,无法找到entity
解决方法:
//mockito方法执行前加
TableInfoHelper.initTableInfo(new MapperBuilderAssistant(new MybatisConfiguration(), “”), xxxxDO.class);
原创
2021-04-30 09:00:47 ·
1576 阅读 ·
0 评论