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

[BE-01] #04 회원가입 기능 구현 #12

Open
7 tasks done
duladroid opened this issue Oct 25, 2022 · 6 comments
Open
7 tasks done

[BE-01] #04 회원가입 기능 구현 #12

duladroid opened this issue Oct 25, 2022 · 6 comments

Comments

@duladroid
Copy link
Contributor

duladroid commented Oct 25, 2022

만들고자 하는 기능은 무엇인가요

회원가입 기능 구현

Due Date

10월 27일 (목) 까지

Progress

  1. application.yml 설정
  2. Entity 클래스 설정
  3. User Post
  4. DTO
  5. 유효성 검증
  6. Postman Test
  7. H2 Test
@duladroid
Copy link
Contributor Author

🛠Fix: Spring Data JPA를 사용할 때 필드 이름이 데이터베이스의 예약어와 같아서 문법 오류 해결

  • @table, @column 어노테이션을 추가후 클래스명에 쌍따옴표로 감싸 지정하였음.
    예) @table(name = ""User"")
  • globally_quoted_identifiers 옵션을 yml 파일에 추가하여, SQL 쿼리문 예약어 충돌 방지.

@duladroid
Copy link
Contributor Author

🛠Fix: Spring Security 인하여 로그인화면으로 자동으로 뜨는 오류

  • 스프링 실행 자바 파일에서
    @SpringBootApplication어노테이션에 다음과 같이 달아주었음.

@duladroid
Copy link
Contributor Author

🧪Test: Postman 테스트 성공

  • post /signup 요청 후 DB 저장 성공.
    기본 회원가입 Postman 성공

@duladroid
Copy link
Contributor Author

yml 에서 localhost는 8000번지로 설정해두었습니다.

@duladroid
Copy link
Contributor Author

Postman 테스트 시 주의점 , JSON Raw format 으로 설정해둘것.

@duladroid
Copy link
Contributor Author

duladroid commented Oct 26, 2022

🧪Test: H-2 Console 실행 결과

  • post /signup 요청 후 DB 저장 성공.
  • 아래 사진과 같이 해싱된 비밀번호를 알 수 있음. (실질 비밀번호는 "1234")
    기본 회원가입 H2-Console DB 저장 성공

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

No branches or pull requests

1 participant