mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-17 14:43:47 +08:00
25 lines
578 B
Java
25 lines
578 B
Java
package cn.keking.web.controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
/**
|
|
* 页面跳转
|
|
* @author yudian-it
|
|
* @date 2017/12/27
|
|
*/
|
|
@Controller
|
|
public class IndexController {
|
|
|
|
@RequestMapping(value = "/index", method = RequestMethod.GET)
|
|
public String go2Index(){
|
|
return "index";
|
|
}
|
|
|
|
@RequestMapping(value = "/", method = RequestMethod.GET)
|
|
public String root() {
|
|
return "redirect:/index";
|
|
}
|
|
}
|