Open AbulSyed opened 1 year ago
Got your issue. This exercise was designed to run only the unit tests with partial JPA spring context in order to demonstrate the Java stream function calls. It might not work properly when loading the full Spring context.
The infinite recursion issue is probably due to conflict between Lombok @Data
and @ManyTo@Many
annotation. Refer to this stackoverflow issue. I will apply a fix to it and let you know. Thanks.
Hi I have cloned the project directly and created an REST endpoint each to fetch the products and orders using the
findAll()
method. When I try to invoke the endpoint using Postman, to see the data output, I am getting the below error:Looks like the infinite json issue is caused due the mapping between the product and order entity.