How to detect cyclic dependencies when serializing in java?

  • Why do you need to identify them? - Mikhail Vaysman
  • Application crashes with StackOverflow error - Roberto
  • one
    java automatically handles circular links. Are you sure that this is the reason? - Mikhail Vaysman
  • No, not sure, trying to figure out the reason for the floating stackoverflowError. My thought is that when I try to serialize my models, there is a cycle in the models. links, from this application and falls - Roberto
  • java can work with circular links. Check your code in the debugger and profiler. - Mikhail Vaysman

1 answer 1

A workaround is to use @JsonIgnore