报错: ‘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; 即可

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐