Json – Recursion problem with JPA and a Spring Rest Controller
I have two JPA entities with a @ManyToMany relationship, for example Student and Course, something like that: Student Entity: @ManyToMany List<Course> courses; Course Entity: @ManyToMany List<Student> students; What is the best way/pattern to implement a Spring REST controller which returns…