这个错误消息是由于使用原始的参数化类'BaseEntity'引起的。为了解决这个问题,你需要在使用'BaseEntity'的地方提供实际的类型参数。

假设你的实体类需要继承'BaseEntity',你可以这样修改代码:

public class YourEntity extends BaseEntity {
    // 其他属性和方法
}

在这个示例中,'YourEntity'是一个实体类,它继承了'BaseEntity'基类。

当你在其他地方使用'YourEntity'时,确保提供实际的类型参数,而不是使用原始的参数化类。例如,你可以这样使用'YourEntity':

List<YourEntity> list = this.getBaseMapper().selectBatchIds(ids);

请根据你的实际情况将'BaseEntity'的使用替换为具体的实体类,并确保提供正确的类型参数。这样可以解决'Raw use of parameterized class 'BaseEntity''错误。

解决Java错误:'Raw use of parameterized class 'BaseEntity''

原文地址: https://www.cveoy.top/t/topic/qSE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录