package cn.common.common.config.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Singer create by Singer email:singer-coder@qq.com
 * @packageName cn.common.common.config.web
 * @Description: 基础的web配置
 * @date 2022-03-03
 */
@Configuration
@Slf4j
public class WebConfig {


    /**
      * 注册内存HTTP追踪BEAN
      * @author: create by singer - Singer email:singer-coder@qq.com
      * @date 2022/3/3
      * @param
      * @return org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository
      */
    @Bean
    public InMemoryHttpTraceRepository inMemoryHttpTraceRepository(){
        return new InMemoryHttpTraceRepository();
    }
}
