i am try to create a one to many bidirectional mapping using spring boot and spring data jpa please look the below entity
Employer Entity
Instead of using @JsonBackReference
and @JsonManagedReference
try to use annotation @JsonIgnoreProperties
:
@JsonIgnoreProperties("employer")
private List employees;
@JsonIgnoreProperties("employees")
private Employer employer;
It prevents Jackson from rendering a specified properties of associated objects.