parent
35e7ca3205
commit
5b977d602f
@ -0,0 +1,20 @@
|
|||||||
|
package com.bsmlab.dfx.dfxconsole.framework.config;
|
||||||
|
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Slf4j
|
||||||
|
public class ForwardController {
|
||||||
|
/**
|
||||||
|
* Spring 에서 클라이언트 라우터 경로를 모두 index.html로 포워딩
|
||||||
|
*/
|
||||||
|
// @RequestMapping(value = { "/", "/{x:[\\w\\-]+}", "/{x:^(?!api|public-api|app-api).*$}/**" })
|
||||||
|
@RequestMapping(value = {"/login.html", "main.html"})
|
||||||
|
public String forward() {
|
||||||
|
return "forward:/index.html";
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="ko" data-bs-theme="dark">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>Page Not Found</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>404 - 페이지를 찾을 수 없습니다</h1>
|
||||||
|
<p>요청하신 페이지가 존재하지 않습니다.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in new issue