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 |
Tags
- Web
- Server
- 자바
- javascript
- interface
- error
- Analysis
- ai
- learning
- mariaDB
- Linux
- git
- SSH
- Deep
- data
- LIST
- Python
- db
- Numpy
- Github
- 함수
- 인공지능
- Pattern
- Spring
- mysql
- Security
- framework
- centos
- DeepLearning
- java
Archives
- Today
- Total
PostIT
[Spring/Java]Spring request scope error : No thread-bound request found - 퍼옴 (아이피 확인시 문제발생) 본문
Spring/Etc
[Spring/Java]Spring request scope error : No thread-bound request found - 퍼옴 (아이피 확인시 문제발생)
shun10114 2016. 11. 22. 14:31-로그인 접속자의 아이피를 요청하는 메소드를 통해서 에러메세지가 발생되었다. 요청을 조건 안에서 찾을 수 없다는 메세지로 해석했는데 찾아보니, 밑의 리스너를 넣어주면 해결이 된다.
문제는 IPv6로 출력되는 값을 IPv4로 전환해야되는데, 이클립스 내에 설정을 바꾸는 것으로 해결이 되는것인지, Java로 설정을 해줘야하는지를 알아봐야할 것 같다.
Solution
To fix it, register a RequestContextListener listener in web.xml
file.
File : web.xml
<web-app ...>
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
</web-app>
'Spring > Etc' 카테고리의 다른 글
[Spring/JSTL] JSTL에서 값 비교하기 - 퍼옴 (0) | 2016.12.21 |
---|---|
[Http] Http 에러코드 메세지 정리 - 퍼옴 (0) | 2016.11.30 |
[Spring/java] 다국어 설정 참고 코드 (0) | 2016.11.07 |
[Spring/Java]Propertis 이용시 한글깨짐 문제 해결 - 퍼옴 (0) | 2016.11.07 |
[Spring/Java]HandlerInterceptorAdapter, Pre,Post, afterCompletion Handler (0) | 2016.10.31 |
Comments