报错: ‘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
原因:包的问题
解决方法
将 import com.baomidou.mybatisplus.mapper.BaseMapper; 改为
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 即可