我正在使用HttpSession
对象:Spring MVC
@Autowired
public abstract class UserController {
@Autowired
public HttpSession session;
@RequestMapping(value = { "" }, method = { RequestMethod.GET })
public ModelAndView index(){
User user=(User)session.getAttribute("loginUser");
}
}
会话线程安全吗?