使用mybatisplus出现的问题

报错原因:

'com.baomidou.mybatisplus.extension.service.IService' cannot be inherited with different type arguments: 'com.sha.code.model.SysRoleEntity' and 'com.sha.code.model.SysRoleMenuEntity'

Error:(17, 8) java: 无法使用以下不同的参数继承com.baomidou.mybatisplus.extension.service.IService: <com.sha.code.model.SysRoleMenuEntity> 和 <com.sha.code.model.SysRoleEntity>

解决方式:

SysRoleService.java中IService中参数写错

修改前
public interface SysRoleService extends IService<SysRoleMenuEntity> {

}
修改后
public interface SysRoleService extends IService<SysRoleEntity> {

}


posted @ 2021-05-13 14:52  shashar  阅读(5107)  评论(0)    收藏  举报