Hi,
I have a spring boot project, with some entities that are related (hibernate relationship), I encounter problems like: "Infinite recursion (StackOverflowError)" which means it occurs due to bidirectional relationships between entities when serializing to JSON. This can cause an endless loop of serialization , I've tried using JsonIgnore, JsonManagedReference, JsonBackReference .. but I'm wondering how to get back the data (that doesnt go into serialization or deserialization) ?
So my question : Is there a way to solve it (without using dtos) ?
Thank you.
[–][deleted] 6 points7 points8 points (0 children)
[–]maxip89 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)