Class LogContextConfig

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Configuration
    public class LogContextConfig
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    Logback Appender, Http Request정보 수집필터 등록.
    Version:
    1.0
    Author:
    always0ne
    • Constructor Detail

      • LogContextConfig

        public LogContextConfig()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        LogbackAppender를 등록.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • multiReadableHttpServletRequestFilterRegistrationBean

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<MultiReadableHttpServletRequestFilter> multiReadableHttpServletRequestFilterRegistrationBean()
        Request를 여러번 읽을수 있도록 캐싱하는 필터 등록.
        Returns:
        MultiReadableHttpServletRequestFilter 빈 등록
      • collectRequestDataFilterRegistrationBean

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<CollectRequestDataFilter> collectRequestDataFilterRegistrationBean()
        Request 정보를 수집하는 필터 등록.
        Returns:
        CollectRequestDataFilter 빈 등록