연향동큰손

  • 홈
  • 태그
  • 방명록

HandlerExceptionResolver 1

HandlerExceptionResolver

HandlerExceptionResolver을 통해 발생하는 예외에 따라서 400,404등등 다른 상태 코드로 처리하는 방법에 대해서 공부했다. @GetMapping("/api/members/{id}")public MemberDto getMember(@PathVariable("id") String id) throws IllegalAccessException { if(id.equals("ex")){ throw new RuntimeException("잘못된 사용자"); } if(id.equals("bad")){ throw new IllegalArgumentException("잘못된 입력 값"); } return new MemberDto(id,"hello"+..

BackEnd/스프링 MVC 2025.01.07
이전
1
다음
더보기
프로필사진

연향동큰손

https://github.com/yangwoohyeon

  • 분류 전체보기 (249)
    • BackEnd (107)
      • Spring Boot (27)
      • 스프링 MVC (25)
      • Thymeleaf (17)
      • HTTP (12)
      • Database (14)
      • Kafka (6)
      • Redis (4)
    • 알고리즘 (0)
      • 백준 (53)
      • 해시 (4)
      • 스택 큐 (8)
      • DP (5)
      • 힙 (2)
      • 정렬 (3)
      • 완전탐색 (6)
      • DFS,BFS (6)
      • 탐욕법(Greedy) (5)
      • 배열 (1)
    • Deployment (14)
      • Docker (5)
      • AWS (5)
      • github Actions (1)
      • Cloudflare (3)
    • 자바 (7)
    • 컴퓨터 (3)
    • git (5)
    • 프로젝트 (1)
    • 에러 일기 (3)
    • 9oormthonUNIV 스터디 프로젝트 (4)
    • DevOps (11)
      • Kubernetes (7)

Tag

검증, 타임리프, AWS, 자바, 브루트포스, Docker, 그리디 알고리즘, @Transactional, 그래프, 백준, 정렬, EC2, kubernetes, 배포, 프로그래머스, dfs, BFS, 스프링, Kafka, JPA,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

Archives

Calendar

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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 깃허브

티스토리툴바