使用Lombok子类继承父类,父类属性不生效

使用Lombok子类继承父类,父类属性不生效

子类增加:

@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class SysRights extends BaseEntity {
    
    
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    private String rightsId;
    private String rightsName;
    private String rightsUrl;
    private String rightsIcon;
}

问题解决
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_38045214/article/details/114968978