package org.synyx.urlaubsverwaltung.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.synyx.urlaubsverwaltung.web.UserInterceptor;


/**
 * Configuration for WebMvc. Configuration is done by overriding base methods of {@link WebMvcConfigurerAdapter}.
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    private final UserInterceptor userInterceptor;

    @Autowired
    public WebMvcConfig(UserInterceptor userInterceptor) {
        this.userInterceptor = userInterceptor;
    }

    @Override
    public void addInterceptors(InterceptorRegistry registry) {

        registry.addInterceptor(userInterceptor).addPathPatterns("/web/**");
    }
}

@@ -313,23 +313,16 @@
 nfigurer
-Adapter
 ;%0Aimport
@@ -377,130 +377,8 @@
 ;%0A%0A%0A
-/**%0A * Configuration for WebMvc. Configuration is done by overriding base methods of %7B@link WebMvcConfigurerAdapter%7D.%0A */%0A
 @Con
@@ -418,14 +418,17 @@
 fig 
-extend
+implement
 s We
@@ -445,15 +445,8 @@
 urer
-Adapter
  %7B%0A%0A
@@ -704,16 +704,60 @@
 stry) %7B%0A
+        // add signedInUser to modelAndViews
 %0A       

Replace WebMvcConfigurerAdapter usage