//package com.sunxung.factoring.component.config;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.HandlerInterceptor;
//
//import java.util.ArrayList;
//import java.util.List;
//
//@Configuration
//public class AuthConfig {
//
//  public InterceptorInit interceptorInit(@Autowired AuthenticationInterceptor authenticationInterceptor,
//      @Autowired RateLimiterInterceptor rateLimiterInterceptor) {
//    List<HandlerInterceptor> list = new ArrayList<>();
//    list.add(authenticationInterceptor);
//    list.add(rateLimiterInterceptor);
//    return new InterceptorInit(list);
//  }
//}
