private static final List<String> URL_PATTERNS = Arrays.asList("/**"); // 인터셉터가 동작 해야 될 요청
                                                                            // 주소 mapping 목록
    // 인터셉터 주소 세팅

    @Bean
    public AuthInterceptor customInterceptor() {
        return new AuthInterceptor();
    }

    @Autowired
    private AuthInterceptor authInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(authInterceptor).addPathPatterns(URL_PATTERNS);
        // .excludePathPatterns("/board");
    }

 

new 로 생성을 해 의존성 주입이 되지 않아 그런다.

위처럼 @Bean 으로 등록해 주면 해결된다.