반응형 springboot interceptor1 [springBoot] springBoot Interceptor 로그인 체크 LoginInterceptor package study.thboard2.common.interceptor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.servlet.HandlerInterceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; @Slf4j //로그인 인터셉터 public class LoginInterceptor implements HandlerInterceptor { //아래처럼 의존성 주입하려면 config에서 @Bean으로.. IT/development 2023. 5. 13. 이전 1 다음 반응형