使用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 ·
1318 阅读 ·
0 评论