//package com.iailab.module.data.framework.interceptor;
|
//
|
//import com.iailab.module.data.framework.filter.MyFilter;
|
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
//import org.springframework.context.annotation.Bean;
|
//import org.springframework.context.annotation.Configuration;
|
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
//
|
//@Configuration
|
//public class WebMvcConfig implements WebMvcConfigurer {
|
//
|
// @Bean
|
// public FilterRegistrationBean httpServletRequestReplacedFilter() {
|
// FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
|
// filterRegistrationBean.setFilter(new MyFilter());
|
// filterRegistrationBean.addUrlPatterns("/*");
|
// filterRegistrationBean.setName("myFilter");
|
// filterRegistrationBean.setOrder(1);
|
// return filterRegistrationBean;
|
// }
|
//
|
//}
|