I have an User object stored in the session with @SessionAttributes. And a straight-forward method decorated with @ModelAttribute in o
User
@SessionAttributes
@ModelAttribute
use @SessionAttribute
@RequestMapping(value = "/{id}", method = RequestMethod.GET) public String showItem(@PathVariable("id") Long id, @SessionAttribute("user") User user, Model uiModel) { ... }