Mason

  • 홈
  • 태그
  • 방명록

@NotEmpty 1

UnexpectedTypeException과 DTO에서 Enum타입 사용

처음 시작은 게시판의 게시글을 post 하기 위한 DTO를 작성하고 요청을 보내 테스트하던중 UnexpectedTypeException 예외가 발생하였다. (해당 예외 이름에서 알 수 있듯이 요청으로 받은 JSON 파일이 다른 타입을 제공하고 있어서 발생한 예외이다. 이것만 좀더 일찍알았더라면 2시간을 허비하지 않았을텐데...) 발생한 예외의 DTO와 Enum 코드 DTO public class PostsDto { @Getter @Builder @Setter public static class Post{ ... ... @NotBlank private String title; @NotBlank // 예외 발생지점 private Posts.PostStatus postStatus; @NotBlank priva..

Projects/Personal project - 게시판 만들기 2023.05.24
이전
1
다음
더보기
프로필사진

Mason

  • 분류 전체보기 (140)
    • Projects (19)
      • Personal project - 게시판 만들기 (9)
      • Team project - 스택오버플로우 클론코딩 (3)
      • Team project - ShellWe (7)
    • Personal Research (5)
    • Java (52)
      • Java (25)
      • Spring & Spring Boot (20)
      • Spring Security (7)
      • Spring WebFlux (0)
    • DB (5)
    • Javascript (9)
    • Nodejs (6)
    • Typescript (4)
    • Datastructure & Algorithm (16)
    • Coding Test Practice (9)
    • Basics of Computer Science .. (7)
    • Deployment (2)
    • Docker (0)
    • Linux Ubuntu (2)
    • Git and Github (2)
    • IntelliJ (1)
    • CS & Interview (1)

Tag

동기, sql, OOP, 재귀, mysql, 비동기, UsernamePasswordAuthenticationToken, 스레드, 객체지향 프로그래밍, DB, GraphQL, transaction, typescript, Enum, optional, apollo, JPA, SecurityContextHolder, annotation, Thread,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바