jersey client 3, spring boot 3, jackson 2.15. @JsonProperty not working after updating to spring boot 3

178 Views Asked by At
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class SomeResponseDTO {

  @JsonProperty("refresh_token")
  private String refreshToken;

  @JsonProperty("expires_in")
  private int expiresIn;

  @JsonProperty("scope")
  public String scope;
}

@JsonProperty doesn't work anymore for the first 2 properties having underscore in the property names, worrks for scope..after updating to spring boot 3, and using jersey client 3 ..

SomeResponseDTO someResponseDTO = response.readEntity(SomeResponseDTO.class);

tried changing jackson versions.

0

There are 0 best solutions below