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
、あなたのクラスに注釈を