본문 바로가기
Spring

aop 에서 request, response 가져오기

by 자바초보자 2015. 10. 26.
728x90

 

 

ServletWebRequest servletContainer = (ServletWebRequest)RequestContextHolder.getRequestAttributes();

HttpServletRequest request = servletContainer.getRequest();

HttpServletResponse response = servletContainer.getResponse();

728x90