-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
윤회성 API 구축 코드 #8
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 ㅎㅎㅎ 👍
} | ||
|
||
@PostMapping("/login") | ||
public String loginProcess( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
위 방법보다Body 값으로 받을 수 있게,
RequestBody 애너테이션을 쓰는게 좋을거같아요!
<h3 th:if="${name != null}" th:text="|안녕하세요! ${name}|" /> | ||
<h3 th:unless="${name != null}" th:text="|안녕하세요! User!|" /> | ||
<br> | ||
<div th:if="${loginId != null}" th:text="|로그인 아이디: ${loginId}|" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
크으 프론트코드까지 👍
import org.junit.jupiter.api.Test; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
|
||
@SpringBootTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테스트가 없어서 아쉽네요 ㅠ
import org.springframework.web.bind.annotation.RequestParam; | ||
|
||
// 간단한 login을 다루는 Controller 입니다. | ||
@Controller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
서비스 코드가 없어서 아쉽네요 ㅠ
Hello 페이지를 연결하는 Controller와 간단한 Login 기능과 그 결과를 보여주는 Controller를 구현했습니다.