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 |
Tags
- bash
- 줄바꿈 문자
- Eclipse
- JavaScript
- IntelliJ
- GIT
- profile
- netsh
- resource
- tomcat
- Source
- find
- import
- maVen
- grep
- VirtualBox
- xargs
- Windows
- lsof
- Mac
- vscode
- 단축키
- Quartz
- web.xml
- Windows 10
- 네트워크
- ssh
- port
- plugin
- context
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