提交 4ac52f0f 编写于 作者: 刘兴

编写视图控制器ViewController,利用Spring MVC 视图解析器解析

上级 0be232f5
package com.hqyj.seven.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by IntelliJ IDEA.
* @File ViewController.java
* @Auth liuxing
* @Date 2021/8/16 22:58
* @Email liuxing997@foxmail.com
*/
@Controller
public class ViewController {
/*后台主页面*/
@RequestMapping("/index")
public String index(){
//指向WEB-INF/jsp/index.jsp
return "index";
}
/*欢迎页面*/
@RequestMapping("/welcome")
public String welcome(){
//指向WEB-INF/jsp/welcome.jsp
return "welcome";
}
//个人信息
@RequestMapping("/person")
public String person(){
//指向WEB-INF/jsp/person.jsp
return "person";
}
/*房间管理*/
//房间列表
@RequestMapping("/houseList")
public String houseList(){
//指向WEB-INF/jsp/houseList.jsp
return "houseList";
}
/*订房管理*/
//订房列表
@RequestMapping("/reservationList")
public String reservationList(){
//指向WEB-INF/jsp/reservationList.jsp
return "reservationList";
}
/*入住管理*/
//入住列表
@RequestMapping("/checkInList")
public String checkInList(){
//指向WEB-INF/jsp/checkInList.jsp
return "checkInList";
}
/*缴费管理*/
//未缴费列表
@RequestMapping("/unpaidList")
public String unpaidList(){
//指向WEB-INF/jsp/unpaidList.jsp
return "unpaidList";
}
//已缴费列表
@RequestMapping("/paidList")
public String paidList(){
//指向WEB-INF/jsp/paidList.jsp
return "paidList";
}
/*客户管理*/
//客户列表
@RequestMapping("/customerList")
public String customerList(){
//指向WEB-INF/jsp/customerList.jsp
return "customerList";
}
/*待办管理*/
//待打扫列表
@RequestMapping("/cleanList")
public String cleanList(){
//指向WEB-INF/jsp/cleanList.jsp
return "cleanList";
}
//待维修列表
@RequestMapping("/maintainList")
public String maintainList(){
//指向WEB-INF/jsp/maintainList.jsp
return "maintainList";
}
/*操作员管理*/
//操作员列表
@RequestMapping("/userList")
public String userList(){
//指向WEB-INF/jsp/userList.jsp
return "userList";
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册