O'Reilly logo
  • Peng Zhang thinks this is interesting:

model.addAttribute("username", spitter.getUsername()); model.addAttribute("spitterId", spitter.getId()); return "redirect:/spitter/{username}";

From

Cover of Spring in Action, 4th Edition: Covers Spring 4

Note

Values surviving a redirect:
no.2 value in the model, getting automatically appended to URL as a query param