package com.ae.sat.servers.master.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by ae on 7-10-16.
 */

@Controller
public class MainController {

    @RequestMapping(method = RequestMethod.GET, value = "/")
    public String index(Model model) {
        return "index";
    }
}

package com.ae.sat.servers.master.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by ae on 7-10-16.
 */

@Controller
public class MainController {

//    @RequestMapping(method = RequestMethod.GET, value = "/")
//    public String index(Model model) {
//        return "index";
//    }
}

Work as is.