All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jdkhome.blzo.ex.basic.configuration.body_reader.BodyReaderConfiguration Maven / Gradle / Ivy

package com.jdkhome.blzo.ex.basic.configuration.body_reader;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * author link.ji
 * createTime 下午6:12 2018/12/4
 */
@Configuration
public class BodyReaderConfiguration {

    @Bean
    public FilterRegistrationBean Filters() {
        FilterRegistrationBean registrationBean = new FilterRegistrationBean<>();
        registrationBean.setFilter(new BodyReaderFilter());
//        registrationBean.addUrlPatterns("/*");
//        registrationBean.setName("bodyReaderFilter");
        return registrationBean;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy