Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 자바
- 브랜치
- 코드업
- 상속
- 깃허브
- 부스트코스
- lv1
- 캡슐화
- Python
- 파이썬
- SQL
- entity
- DTO
- github
- @builder
- HashSet
- @NoArgsConstructor
- CRUD
- 프로그래머스
- 기본생성자
- @AllArgsConstructor
- 에러
- git
- html tag
- 부트캠프
- stringbuffer
- java
- HTML
- 알고리즘
- Codeup
Archives
- Today
- Total
목록PostMan (1)
잉?

회원가입 시 username과 password의 구성이 알맞지 않으면 에러메시지와 statusCode: 400을 Client에 반환하기 요구사항에 맞게 코드를 작성하려 한다. UserController.java @PostMapping("/user/signup") public ResponseEntity signup(@RequestBody @Valid SignupRequestDto requestDto) { try{ userService.signup(requestDto); }catch (IllegalArgumentException e){ return ResponseEntity.badRequest().body(new ApiResponseDto("중복된 username입니다.", HttpStatus.BAD_REQ..
Back-end/스프링부트(SpringBoot)
2023. 8. 1. 20:55