CommonController.java

package com.mycim.webapp;

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

@Controller
/**
 * 绑定jsp和路径
 *
 * @author Johnson Wang
 **/ public class CommonController {

    @RequestMapping(value = {"/setupentry"}, method = {RequestMethod.POST, RequestMethod.GET})
    public String setupentry() {
        return "initTemplate";
    }

    @RequestMapping(value = {"/"}, method = {RequestMethod.POST, RequestMethod.GET})
    public String home() {
        return "login";
    }

}