본문 바로가기
JAVA

클래스나 메소드에서 직접 HttpServletRequest객체 생성 방법

by J데빌 2020. 6. 29.
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();

댓글