Spring Boot Request Body

Howdy Everybody!

I am creating a simple API that takes in two lists that hold different objects. Right now I am using the @RequestBody annotation in the controller to map the data to an object but now I don't know how to do it with different lists. Do I need a wrapper class? If so is it better to make a custom wrapper or use a Map? All help is appreciated!
Was this page helpful?