mybatis-plus错误:'getBaseMapper()' in 'com.baomidou.mybatisplus.extension.service.

4,363 阅读1分钟

错误信息

'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

image.png

解决办法:

查看接口、实现类、mapper,对应的实体类是否一致,这里我就是因为mapper使用的实体类不一致造成

image.png

image.png