当前位置:网站首页>[MP error] MP: 'getbasemappe serviceimpl' claims

[MP error] MP: 'getbasemappe serviceimpl' claims

2022-07-28 15:16:00 Hello, did you touch it

  • ServiceImp Report errors

‘getBaseMapper()’ in ‘com.baomidou.mybatisplus.extension.service.impl.ServiceImpl’ clashes with ‘getBaseMapper()’ in ‘com.baomidou.mybatisplus.extension.service.IService’; attempting to use incompatible return type

stay MyBatis-plus in , The general reference package is

com.baomidou.mybatisplus.core.mapper;

Look at the source code ,IService And its implementation class ServiceImpl Yes Mapper All the requirements are

<M extends BaseMapper<T>, T>
ServiceImpl<M extends BaseMapper<T>, T> implements IService<T>

Problem solving : Check your own definition xxServiceI Used in mapper Whether it is BaseMapper Subclasses of , And

Mapper Generic references should be associated with IService bring into correspondence with .

原网站

版权声明
本文为[Hello, did you touch it]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/196/202207130916309459.html