public static LoginVO getUser(){ ServletRequestAttributes servletrequestattributes = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes(); HttpSession session = servletrequestattributes.getRequest().getSession(true); return (LoginVO) session.getAttribute("์ปจํธ๋กค๋ฌ์์ ๋ง๋ค์๋ setAttribute ๊ฐ ex)loginVO"); } ์ฐธ๊ณ : https://devmg.tistory.com/63