title: Model.SetViewName in Spring
body: <p>I know what is addObject here.
  Can anyone please tell me what is <strong>modelAndView.setViewName</strong>("vendorInfo");</p>
  
  <p>Sorry I am a Beginner</p>
  
  <pre><code>@RequestMapping(value = "/listSupplier",method = RequestMethod.GET)
  public ModelAndView supplierList() {
      List&lt;Supplier&gt; supplierList=adminService.listSuppliers();
      modelAndView.setViewName("vendorInfo");
      modelAndView.addObject("suppliersList", supplierList);
      return modelAndView;
  }
  </code></pre>