In spring mvc, when creating a ModelAndView there's a method called `addObject(Object attributeName)` single parameter, and I don't understand how to make use of it. I also see `model.addAllObjects(Map<String, ?> object)`. 

How can I get that map in jsp? Or what is the purpose of those methods? I only know how to make use of `model.addObject("car", new Car())` because is like defining servlet parameters. I found this information in spring but I don't really understand it.

[Spring addObject and addAllObjects](http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/servlet/ModelAndView.html#addObject-java.lang.Object-)