I have this doubt... I have a singleton bean...and I want to set some parameters on the HttpServletRequest
, on this way:
@RequestMapping(value = "/myUrl", method = RequestMethod.GET)
public String myMethod(final ModelMap model, final HttpServletRequest req){
req.getSession().setAttribute("myKey", "someValue");
return "/myURL";
}
So, if I set myKey, that value will be accessible only by the current user in that session? or because it is a singleton bean could be overriden by other user?