[FIX] NoResourceFoundException 에러 해결 - #316 #317
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔥Pull requests
⛳️ 작업한 브랜치
👷 작업한 내용
기존 시스템에서는 / URL 요청 시 NoResourceFoundException이 발생하며 디스코드 알림 시스템을 통해 불필요한 에러 알림이 전송되는 문제가 있었습니다. 이는 정상적인 서비스 동작과 무관한 요청에 대한 알림이 쌓여, 중요한 에러를 식별하기 어렵게 만드는 원인이 되었습니다.
이에 / URL 요청이 발생하더라도 디스코드 알림으로 전송되지 않도록 Spring Security 설정에서 / URL을 whiteList에서 제거하고, Security FilterChain을 통해 인증이 필요한 요청으로 처리되도록 변경했습니다. 이를 통해 / 요청은 Spring Security의 기본적인 인증 실패 처리 흐름에 따라 JwtAuthenticationEntryPoint에서 401 Unauthorized 응답으로 처리됩니다. 이 방식은 정상적인 에러 핸들링으로 간주되어 불필요한 디스코드 에러 알림을 차단하도록 합니다.
🚨 참고 사항
📟 관련 이슈