Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- resource
- lsof
- VirtualBox
- xargs
- tomcat
- Windows
- copy-dependencies
- netsh
- 공통표준용어
- Mac
- port
- find
- Quartz
- context
- JavaScript
- grep
- import
- Eclipse
- Windows 10
- maVen
- GIT
- ssh
- bash
- web.xml
- Source
- 네트워크
- DB 도메인
- 단축키
- IntelliJ
- profile
Archives
- Today
- Total
develog
Spring 에서 HttpServletRequest 접근 본문
web.xml 에 listener 추가
<listener> <listener-class> org.springframework.web.context.request.RequestContextListener </listener-class> </listener> |
getRequest()
public static HttpServletRequest getRequest() { ServletRequestAttributes sra = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes(); HttpServletRequest request = sra.getRequest(); return request; } |
'Dev > Spring' 카테고리의 다른 글
[Spring] Spring 2.5, Properties (0) | 2014.11.10 |
---|---|
[Spring] beans xml schema (0) | 2014.10.15 |
LogAspect (0) | 2013.12.11 |
Spring AOP Pointcut expression (0) | 2013.12.11 |
Spring AOP 설정 (0) | 2013.12.11 |
Comments