Code example for ModelAndView

Methods: getModelMap

0
 
  @Override 
  public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, 
      ModelAndView mav) throws Exception { 
 
    if (mav != null && mav.getModelMap() != null) { 
      mav.getModelMap().addAttribute(attributeName, router); 
    } 
  } 
 
  public void setAttributeName(String attributeName) { 
    this.attributeName = attributeName; 
  } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java