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

com.lwq.fast.log.trace.config.AutoLogTraceConfiguration Maven / Gradle / Ivy

package com.lwq.fast.log.trace.config;


import com.lwq.fast.log.trace.filter.LogTraceFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 刘文强
 */
@Configuration
public class AutoLogTraceConfiguration {

    @Bean
    public FilterRegistrationBean logTraceFilterBean(){
        FilterRegistrationBean filterRegistration = new FilterRegistrationBean();
        filterRegistration.setFilter(new LogTraceFilter());
        filterRegistration.addUrlPatterns("/*");
        filterRegistration.setOrder(0);
        return filterRegistration;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy