WebMvcConfiguration > SPRINGBOOT

본문 바로가기
사이트 내 전체검색

SPRINGBOOT

WebMvcConfiguration

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 73회 작성일 24-06-11 11:00

본문

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("/**"); //모든 경로

}

}


댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

공지사항
자유게시판
질문답변
1:1문의

 

별명 : 터푸가위
주소 : 부산시 동래구 명장로20번길 90
대표 : 박규태
메일 : dancepkt@******.com

접속자집계

오늘
234
어제
285
최대
10,760
전체
277,840
Copyright © dancePKT . All rights reserved.