mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-13 20:53:47 +08:00
34 lines
619 B
Java
34 lines
619 B
Java
package cn.keking.web.controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
/**
|
|
* 页面跳转
|
|
* @author yudian-it
|
|
* @date 2017/12/27
|
|
*/
|
|
@Controller
|
|
public class IndexController {
|
|
|
|
@GetMapping( "/index")
|
|
public String go2Index(){
|
|
return "index";
|
|
}
|
|
|
|
@GetMapping( "/record")
|
|
public String go2Record(){
|
|
return "record";
|
|
}
|
|
|
|
@GetMapping( "/comment")
|
|
public String go2Comment(){
|
|
return "comment";
|
|
}
|
|
|
|
@GetMapping( "/")
|
|
public String root() {
|
|
return "redirect:/index";
|
|
}
|
|
}
|