‘getBaseMapper()‘ in ‘com.baomidou.mybatisplus.extension.service.impl.ServiceImpl‘ clashes with.....

Mybatis-Plus发生该报错:

'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.

 

原因:

       你的dao层接口文件名不是xxxMapper.java命名规范,MP中的dao层文件名必须是Mapper结尾。


版权声明:本文为IT_LPF原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。