クラスにロンボク@NoArgsConstructorを使用することはできません

Maciaz:

私は、JSONパーサーとしてジャクソンを使用していると私はエラーを取得しています:

No suitable constructor found for type ~ can not instantiate from JSON object

だから私は、追加しようとしました@NoArgsConstructorが、今私はこの1つを取得しています:

constructor AccountItem in class AccountItem cannot be applied to given types

ここに私のクラスです:

@Getter
@Builder
public class AccountItem {

/**
 * Accounti dentifier
 */
private Long accountId;

/**
 * Account name
 */
private String accountName;

/**
 * Account priority
 */
private int accountPriority;
}

何が原因である可能性がありますか?

炭酸カルシウム:

両方の追加@AllArgsConstructor@NoArgsConstructor、あなたのクラスに注釈を

おすすめ

転載: http://43.154.161.224:23101/article/api/json?id=201300&siteId=1