解决‘getBaseMapper()‘ in ‘com.baomidou.mybatisplus.extension.service.impl.ServiceImpl‘ clashes with问题
将 import com.baomidou.mybatisplus.mapper.BaseMapper;
·
报错: ‘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; 即可
更多推荐
已为社区贡献1条内容
所有评论(0)