package com.jeequan.jeepay.member.web;

import com.jeequan.jeepay.core.config.WebConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

/**
 * webmvc配置
 *
 * @author terrfly
 * @modify zhuxiao
 * @date 2021-04-27 15:50
 */
@Configuration
public class WebmvcConfig extends WebConfig {

    @Autowired
    private ApiResInterceptor apiResInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        super.addInterceptors(registry);
        registry.addInterceptor(apiResInterceptor);
    }
}
