Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

squareCaaat
Copy link

Hello 페이지를 연결하는 Controller와 간단한 Login 기능과 그 결과를 보여주는 Controller를 구현했습니다.

Copy link
Member

@mjj111 mjj111 left a 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(
Copy link
Member

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}|" />
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

서비스 코드가 없어서 아쉽네요 ㅠ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants