title: ModelAndView reference to view with name model is null in spring boot
body: <p>I have a jsp page named product. I have send some message to jsp page from controller  using ModelAndView. But it returns null. ModelAndView's Message is not set to jsp page. here is my controller code..</p>
  
  <pre><code>@RequestMapping(value = "/add", method = RequestMethod.POST)
    public ModelAndView adduser(@ModelAttribute("productForm") Errors error, Model model) {
  
      ModelAndView modelAndView = new ModelAndView("product");
      System.out.println(modelAndView);
      modelAndView.addObject("outMessage", "User Registration Success");
      return new ModelAndView("redirect:/productSetup");
    }
  </code></pre>
  
  <p>Please help me..</p>