I need to render ModelAndView in my controller manually in order to put it inside JSON object. If I pass the whole ModelAndView object into to JSON I get ” no serializer found for class javassistlazyinitializer” exception because jackson can’t work properly with LAZY-objects.
Thank you
I need to render ModelAndView in my controller manually in order to put it
Share
ModelAndView returnModelAndView = new ModelAndView(new JSONView(), model);