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

com.itcoon.common.tracelog.config.HttpTraceLogConfig Maven / Gradle / Ivy

package com.itcoon.common.tracelog.config;

import com.itcoon.common.tracelog.component.HttpTraceLogFilter;
import com.itcoon.common.tracelog.component.HttpTraceLogger;
import com.itcoon.common.tracelog.component.TraceLogResolver;
import com.itcoon.common.tracelog.config.properties.HttpTraceLogProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@ConditionalOnProperty(name = "itcoon.web.trace-log.enable",havingValue = "true")
@EnableConfigurationProperties(HttpTraceLogProperties.class)
public class HttpTraceLogConfig {

    @Bean
    public HttpTraceLogFilter httpTraceLogFilter(){
        return new HttpTraceLogFilter();
    }

    @Bean
    public TraceLogResolver HttpTraceLogLogger(){
        return new HttpTraceLogger();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy