package com.jeequan.jeepay.mgr.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
*
* @date 2021/6/8 17:12
*/
@Configuration
public class WebmvcConfig extends WebConfig {

    @Autowired
    private ApiResInterceptor apiResInterceptor;

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