nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: No _valueDeserializer assigned

Problem:

nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: No _valueDeserializer assigned


Solution:

Modifiy  POJO class as below

Before  :

@ManyToOne
    @JsonIgnoreProperties("orders")
    private Vendor vendor;

    @ManyToOne
    @JsonIgnoreProperties("orders")
    private Menu menu;

After :

@ManyToOne 
@JsonIgnoreProperties(value = {"orders"}, allowSetters = true)
    private Vendor vendor;

    @ManyToOne
@JsonIgnoreProperties(value = {"orders"}, allowSetters = true)
    private Menu menu;

0 comments:

Post a Comment