【优化】使用Thymeleaf渲染
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
package com.corewing.app.modules.admin;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class SysMainController {
|
||||||
|
|
||||||
|
@GetMapping({"/", "/index.html"})
|
||||||
|
public String loading() {
|
||||||
|
return "/admin/loading";
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/admin/login.html")
|
||||||
|
public String login() {
|
||||||
|
return "/admin/login";
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/admin/index.html")
|
||||||
|
public String adminIndex() {
|
||||||
|
return "/admin/index";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user