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
- 로컬
- enV
- 자동실행
- commit
- PowerShell
- git
- getrequesuri
- pycharm
- 인텔리제이
- maven wrapper
- Wrapper
- 가상환경
- interceptor
- err_too_many_redirects
- BAT
- Flask
- github
- sendRedirect
- CLI
- 코드비교
- contextPath
- GitLab
- springboot
- Push
- 파이참
- gitbash
- redirect
- pom.xml
- 첫프로젝트
- Python
Archives
- Today
- Total
목록redirect (1)
오류공장
Spring Interceptor ContextPath Redirect 문제
사용자 권한 추가로 Interceptor에사용자는 "/login", "/user" 로 url이 시작하지 않는 경우 홈을 response.sendRedirect 시키는 코드를 추가했다. 로컬에선 잘 동작해서 된줄알았는데개발서버 반영 후 "ERR_TOO_MANY_REDIRECTS" 오류가 발생했다,,, 확인해보니 개발서버엔 ContextPath가 있었고 로컬에서 개발할땐 없었어서 발견하지 못했다구글링하다보니 request.getRequestURI() 에는"무.조.건" ContextPath 가 포함이된다 그래서 ContextPath를 replace 시키고 해결! 근데 response.sendRedirect 에는 contextPath가 포함이 안된단다,,그래서 앞에 추가했다.String requestUri = ..
IT/JAVA
2024. 12. 10. 17:48