UserCenterInterceptorConfig.java 629 字节
package com.tianbo.analysis.intercept;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class UserCenterInterceptorConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        UserCenterHanlerInterceptor userCenterHanlerInterceptor = new UserCenterHanlerInterceptor();
        registry.addInterceptor(userCenterHanlerInterceptor).addPathPatterns("/trans/selectTrans");
    }
}