我有这门课
public class Hostel extends Hotel<Book> {
}
还有这个
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = { "id" })
@SuperBuilder(toBuilder = true)
@JsonInclude(NON_NULL)
public class Hotel<T> {
...
}
但是当我这样做时
Hostel hostel = Hostel.builder().build();
我得到了这个编译错误
Required type: Hostel
Provided:
capture of ?