💬 访问页面使用重定向

This commit is contained in:
bunny 2025-07-01 21:23:13 +08:00
parent 654019f77b
commit 5804e6fe9b
1 changed files with 11 additions and 1 deletions

View File

@ -7,8 +7,18 @@ import org.springframework.web.bind.annotation.GetMapping;
public class IndexController {
@GetMapping("/")
public String index() {
public String indexPage() {
return "redirect:/main";
}
@GetMapping("main")
public String databasePage() {
return "main";
}
@GetMapping("/sql")
public String sqlPage() {
return "sql";
}
}