From 03f542d468ab3a106ac57b64835dcc15ce59c0bf Mon Sep 17 00:00:00 2001 From: alsth712 Date: Fri, 17 May 2024 09:06:27 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20onboarding=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/today/meevote/config/WebConfig.java | 1 + .../controllerAdvice/ControllerAdvice.java | 2 +- .../domain/etc/controller/ViewController.java | 5 + .../static/image/onboarding/onboarding.svg | 560 ++++++++++++++++++ src/main/webapp/WEB-INF/views/login/hello.jsp | 77 +++ 5 files changed, 644 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/static/image/onboarding/onboarding.svg create mode 100644 src/main/webapp/WEB-INF/views/login/hello.jsp diff --git a/src/main/java/today/meevote/config/WebConfig.java b/src/main/java/today/meevote/config/WebConfig.java index 292877e..7bebb08 100644 --- a/src/main/java/today/meevote/config/WebConfig.java +++ b/src/main/java/today/meevote/config/WebConfig.java @@ -20,6 +20,7 @@ public void addInterceptors(InterceptorRegistry registry) { "/api/**", "/register", "/login", + "/hello", "/v3/api-docs", "/swagger", "/swagger-ui.html", diff --git a/src/main/java/today/meevote/controllerAdvice/ControllerAdvice.java b/src/main/java/today/meevote/controllerAdvice/ControllerAdvice.java index ee72424..7dd0211 100644 --- a/src/main/java/today/meevote/controllerAdvice/ControllerAdvice.java +++ b/src/main/java/today/meevote/controllerAdvice/ControllerAdvice.java @@ -13,7 +13,7 @@ public class ControllerAdvice { @ExceptionHandler(UnauthenticatedException.class) public String unauthenticatedException(UnauthenticatedException e){ log.error("unauthenticatedException", e); - return "redirect:/login"; + return "redirect:/hello"; } @ExceptionHandler(NotFoundException.class) diff --git a/src/main/java/today/meevote/domain/etc/controller/ViewController.java b/src/main/java/today/meevote/domain/etc/controller/ViewController.java index 896daeb..2fa2f83 100644 --- a/src/main/java/today/meevote/domain/etc/controller/ViewController.java +++ b/src/main/java/today/meevote/domain/etc/controller/ViewController.java @@ -56,4 +56,9 @@ public String register() { public String login() { return "login/login"; } + + @GetMapping("/hello") + public String hello() { + return "login/hello"; + } } diff --git a/src/main/resources/static/image/onboarding/onboarding.svg b/src/main/resources/static/image/onboarding/onboarding.svg new file mode 100644 index 0000000..fc8cfe1 --- /dev/null +++ b/src/main/resources/static/image/onboarding/onboarding.svg @@ -0,0 +1,560 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/views/login/hello.jsp b/src/main/webapp/WEB-INF/views/login/hello.jsp new file mode 100644 index 0000000..1b1aafd --- /dev/null +++ b/src/main/webapp/WEB-INF/views/login/hello.jsp @@ -0,0 +1,77 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + + + + + + + + MeeVote + + + + + + + + + + + + + +
+ +
+ + \ No newline at end of file