38 lines
753 B
Java
38 lines
753 B
Java
package top.fjy8018.shiro.controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
/**
|
|
* 页面导航
|
|
*
|
|
* @author F嘉阳
|
|
* @date 2018/7/6 10:57
|
|
*/
|
|
@Controller
|
|
public class NavController {
|
|
|
|
@RequestMapping("/index")
|
|
public String index() {
|
|
return "index";
|
|
}
|
|
|
|
@RequestMapping("/admin")
|
|
@ResponseBody
|
|
public String admin() {
|
|
return "admin success";
|
|
}
|
|
|
|
@RequestMapping("/unauthorized")
|
|
public String unauthorized() {
|
|
return "unauthorized";
|
|
}
|
|
|
|
@RequestMapping("/edit")
|
|
@ResponseBody
|
|
public String edit() {
|
|
return "edit success";
|
|
}
|
|
}
|