인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

jhkweon74's profile image
jhkweon74

asked

Spring MVC Part 2 - Backend Web Development Utilization Technology

인터셉터 excludePathPatterns

Written on

·

1.6K

0

@Configuration
public class WebConfig implements WebMvcConfigurer {

@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new LoginCheckInterceptor())
.order(1)
.addPathPatterns("/**")
.excludePathPatterns("/", "/members/new", "/login", "/logout", "/boards/**",
"/**/images/**","/css/**", "/*.ico", "/error");
}
}

인터셉터에서 boards/new는 막고 싶은데 boards/{id}는 막지 않는 방법이 있을까요?

MVCspring

Answer 1

0

yh님의 프로필 이미지
yh
Instructor

안녕하세요. jhkweon74님

저도 잘 모르겠네요. 혹시 아시는 분 있으면 답변 남겨주세요.

감사합니다.

jhkweon74's profile image
jhkweon74

asked

Ask a question