From 29a75c2feb94d9e84c9551b330b54c8cf309b2bc Mon Sep 17 00:00:00 2001 From: shinheekim Date: Wed, 31 Jul 2024 17:13:28 +0900 Subject: [PATCH] test --- .../UserCheckController.java | 16 ++++++++++++++++ src/main/resources/templates/user.html | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/main/java/net/skhu/likelion12thteam03be/UserCheckController.java create mode 100644 src/main/resources/templates/user.html diff --git a/src/main/java/net/skhu/likelion12thteam03be/UserCheckController.java b/src/main/java/net/skhu/likelion12thteam03be/UserCheckController.java new file mode 100644 index 0000000..73d903c --- /dev/null +++ b/src/main/java/net/skhu/likelion12thteam03be/UserCheckController.java @@ -0,0 +1,16 @@ +package net.skhu.likelion12thteam03be; + +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +@RequestMapping("/users") +public class UserCheckController { + @GetMapping + public String userHi (Model model) { + return "user.html"; + } +} diff --git a/src/main/resources/templates/user.html b/src/main/resources/templates/user.html new file mode 100644 index 0000000..2bc99e3 --- /dev/null +++ b/src/main/resources/templates/user.html @@ -0,0 +1,10 @@ + + + + + userHello + + +/users 했을 때 들어오게 되는 페이지 + + \ No newline at end of file