在使用mybatis puls进行批量更新的时候出现了该错误

错误说明: 

出现该问题主要是因为继承了Mybaits Plus的ServiceImpl接口没有明确泛型

 

错误示范:

下面的代码封装没有明确ServiceImpl实现类的类型,导致批量更新无法使用

MybatisPlusException: Error: Cannot execute table Method, ClassGenricType not found

MybatisPlusException: Error: Cannot execute table Method, ClassGenricType not found

 

正确使用; 

MybatisPlusException: Error: Cannot execute table Method, ClassGenricType not found

 

明确Mapper的类型之后,批量更新或者批量新增即可正常使用

相关文章: