在使用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的类型之后,批量更新或者批量新增即可正常使用

相关文章:

  • 2021-10-04
  • 2022-12-23
  • 2021-11-03
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-06-12
相关资源
相似解决方案