WebMvcConfiguration
페이지 정보
![profile_image](https://dancepkt.cafe24.com/data/member_image/ad/admin.gif?1630310007)
본문
package web.interceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration //해당 클래스를 Bean 구성 Class임을 알려주는 기능
public class WebMvcConfiguration implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new LoggerInterceptor()).addPathPatterns("/**"); //모든 경로
}
}
- 이전글LoggerInterceptor 24.06.11
- 다음글■ Log4JDBC 쿼리 로그 설정하기 ( 콘솔에서 확인 ) 24.06.11
댓글목록
등록된 댓글이 없습니다.