This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
modelandview has two methods
ModelAndView addAllObjects(Map modelMap)
Add all entries contained in the provided map to the model.
ModelAndView addObject(String modelName, Object modelObject)
Add an object to the model.
i am confused by having two methods. we can use addObject() in place of addAllObjects(). right? if not please clarify how addAllObjects() is useful.