package com.aemreunal.config;

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

/*
 **************************
 * Copyright (c) 2014     *
 *                        *
 * This code belongs to:  *
 *                        *
 * Ahmet Emre Ünal        *
 * S001974                *
 *                        *
 * aemreunal@gmail.com    *
 * emre.unal@ozu.edu.tr   *
 *                        *
 * aemreunal.com          *
 **************************
 */

/*
 * http://www.petrikainulainen.net/programming/spring-framework/unit-testing-of-spring-mvc-controllers-configuration/
 */

@Configuration
@EnableWebMvc
@ComponentScan(basePackages = { "com.aemreunal.controller" })
public class MVCConfig extends WebMvcConfigurerAdapter {
    // TODO find out what this class is used for

}

@@ -217,16 +217,94 @@
 WebMvc;%0A
+import org.springframework.web.servlet.config.annotation.InterceptorRegistry;%0A
 import o
@@ -377,16 +377,16 @@
 dapter;%0A
-
 %0A/*%0A ***
@@ -955,19 +955,8 @@
 unal
-.controller
 %22 %7D)
@@ -1063,10 +1063,486 @@
 ed for%0A%0A
+    @Override%0A    public void addInterceptors(InterceptorRegistry registry) %7B%0A        super.addInterceptors(registry);%0A        // TODO Add security interceptor for HTTP to HTTPS redirect%0A        // http://docs.spring.io/spring/docs/4.0.0.RELEASE/spring-framework-reference/htmlsingle/#mvc-container-config%0A%0A//        registry.addInterceptor(new FilterSecurityInterceptor()).addPathPatterns(%22/secure/*%22);%0A//        registry.addInterceptor().addPathPatterns(%22/secure/*%22);%0A    %7D%0A
 %7D%0A

Add todo