package org.docksidestage.app.application;

import org.docksidestage.dbflute.svflute.GodHandableControllerInterceptor;
import org.docksidestage.dbflute.svflute.RequestLoggingFilter;
import org.springframework.boot.context.embedded.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author jflute
 */
@Component
public class WebAppConfig extends WebMvcConfigurerAdapter {

    @Bean
    public FilterRegistrationBean filterRegistrationBean() { // for logging
        FilterRegistrationBean registrationBean = new FilterRegistrationBean();
        RequestLoggingFilter loggingFilter = new RequestLoggingFilter();
        registrationBean.setFilter(loggingFilter);
        registrationBean.setOrder(1);
        return registrationBean;
    }

    @Override
    public void addInterceptors(InterceptorRegistry registry) { // for logging
        registry.addInterceptor(new GodHandableControllerInterceptor()).addPathPatterns("/**");
    }
}

@@ -331,28 +331,40 @@
 ork.
-stereotype.Component
+context.annotation.Configuration
 ;%0Aim
@@ -555,15 +555,19 @@
 %0A@Co
-mponent
+nfiguration
 %0Apub

change to configuration annotation