Skip to content

refactor : 데이터 검증 코드 리펙토링 #7

Description

@hye-inA

📌 Description ( 작업 상세 내용 )

기존 에러 검증 코드 문제점

  1. 매번 메서드마다 값을 검증해야하는 코드가 들어가야한다 -> 메소드 양 증가시 비효율적
  2. 검증 부분에서 버그가 발생할 여지가 높다 (필드명 오타 등등)
  3. 여러개의 에러처리가 힘듬

작업 내용

  • 전역 예외 처리 @ControllerAdvice 클래스 구현
  • 응답값으로 응답 클래스로 변경

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorrefactoring code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions