generated from youfool-project/youfool-prj-springboot-template
44 lines
720 B
Java
44 lines
720 B
Java
|
|
package com.chinaweal.youfool.course.controller;
|
||
|
|
|
||
|
|
import org.springframework.stereotype.Controller;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 页面控制器
|
||
|
|
*
|
||
|
|
* @author lroyia
|
||
|
|
* @since 2025/10/24
|
||
|
|
**/
|
||
|
|
@Controller
|
||
|
|
public class PageController {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 登录页面
|
||
|
|
*
|
||
|
|
* @return 登录页面
|
||
|
|
*/
|
||
|
|
@GetMapping("/login")
|
||
|
|
public String loginPage() {
|
||
|
|
return "login";
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 首页
|
||
|
|
*
|
||
|
|
* @return 首页
|
||
|
|
*/
|
||
|
|
@GetMapping("/")
|
||
|
|
public String index() {
|
||
|
|
return "index";
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 首页
|
||
|
|
*
|
||
|
|
* @return 首页
|
||
|
|
*/
|
||
|
|
@GetMapping("/index")
|
||
|
|
public String indexPage() {
|
||
|
|
return "index";
|
||
|
|
}
|
||
|
|
}
|