When I try to post new object with post method. RequestBody could not recognize contentType. Spring is already configured and POST could work with others objects, but not th
I had the same issue when I used this as a foreign key.
@JsonBackReference @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.DETACH},fetch = FetchType.EAGER) @JoinColumn(name = "user_id") private User user;
Then I removed @JsonBackReference annotation. After that above issue was fixed.
@JsonBackReference