Use Lombok subclass to inherit the parent class, the properties of the parent class do not take effect

Use Lombok subclass to inherit the parent class, the properties of the parent class do not take effect

Subcategories increase:

@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;
}

problem solved
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_38045214/article/details/114968978