Esempio n. 1
0
  @RequestMapping(value = "/welcome", method = RequestMethod.GET)
  public ModelAndView welcome(Model model) {
    LOG.debug("move to welcome page");

    model.addAttribute("object", "Test string");
    ModelAndView modelAndView = new ModelAndView("welcome");
    return modelAndView;
  }
Esempio n. 2
0
 @RequestMapping(value = "/", method = RequestMethod.GET)
 public String root() {
   LOG.debug("redirect from root to welcome");
   return "redirect:welcome";
 }