This is my District Controller, when I try to fetch data after saving I get the error, even when I try get object form getDistrict(Long id)
the same strikes ple
This issue occurs when dealing with bi-directional mapping. Use @JsonManagedReferenc
and @JsonBackReference
in DAO/Entity class
@JsonManagedReference is the forward part of reference – the one that gets serialized normally. @JsonBackReference is the back part of reference – it will be omitted from serialization.
(Read More)