package bj.pranie.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by Sebastian Sokolowski on 05.09.17.
 */
@Configuration
public class MvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("index");
        registry.addViewController("/wm/week").setViewName("wm/week");
        registry.addViewController("/week/wm").setViewName("wm/wm");
        registry.addViewController("/user/registration").setViewName("user/registration");
        registry.addViewController("/user/restore").setViewName("user/restore");
        registry.addViewController("/user/settings").setViewName("user/settings");
    }

}

@@ -524,403 +524,8 @@
 %22);%0A
-        registry.addViewController(%22/wm/week%22).setViewName(%22wm/week%22);%0A        registry.addViewController(%22/week/wm%22).setViewName(%22wm/wm%22);%0A        registry.addViewController(%22/user/registration%22).setViewName(%22user/registration%22);%0A        registry.addViewController(%22/user/restore%22).setViewName(%22user/restore%22);%0A        registry.addViewController(%22/user/settings%22).setViewName(%22user/settings%22);%0A
     

Remove unnecessary mvc registry.