ppobbi-study / CS_Study_Hub

CS 스터디 레포입니다.
3 stars 6 forks source link

Spring 에서 filter와 inteceptor의 차이에 대해 설명해주세요. #79

Open SunheeYoon96 opened 5 months ago

SunheeYoon96 commented 5 months ago

답변

freakFlow commented 5 months ago

답변

filter와 interceptor는 인증 및 인가, 로깅 등 공통된 작업의 반복적인 코드 사용을 피하기 위해 사용하는 기능입니다. filter의 경우 웹 컨텍스트, interceptor의 경우 스프링 컨텍스트에서 처리되는 차이점이 있습니다.

kimmainsain commented 5 months ago

답변

Seobway23 commented 5 months ago

Filter

Interceptor