본문 바로가기 메뉴 바로가기

DevHJ

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

DevHJ

검색하기 폼
  • 분류 전체보기 (63)
    • Spring (27)
    • Java (7)
    • Git (5)
    • Redis (2)
    • Node.js (2)
    • 데이터베이스 (4)
      • Oracle (0)
      • MySql (3)
    • AWS (4)
    • Tool (8)
      • Intellij (2)
      • Eclipse (5)
      • DB (1)
    • 일상 (2)
      • 요리 (1)
      • 가볼만한곳 (1)
  • 방명록

restControllerAdvice (1)
Spring ControllerAdvice 활용

목적 Spring ControllerAdvice 사용방법 예제소스 https://github.com/devHjlee/devHjBlog/tree/main/springControllerAdivce ControllerAdvice 스프링프레임워크에서 예외 처리 코드를 중복해서 작성하지 않고, 전체 컨트롤러에 대한 전역적인 예외처리를 정의 할 수 있다. 컨트롤러 메소드에서 예외가 발생하면 ControllerAdvice가 이를 가로채고 정의된 예외 처리 로직을 적용한다. RestControllerAdvice ControllerAdvice 와 비슷한 기능을 제공하지만 반환되는 값의 형식이 다르다. ControllerAdvice 는 ModelAndView 객체를 반환하여 뷰를 랜더링 할 수 있지만, RestContro..

Spring
이전 1 다음
이전 다음
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • spring security
  • actuator prometheus grafana
  • spring boot jpa
  • nginx gzip
  • spring redis cache
  • kafka srping event
  • kafka redis
  • cursor ai 프로젝트
  • custom Item writer
  • tomcat gzip
  • SpringBatch 5.1.1
  • cursor ai 프롬프트
  • JdbcBatchItem
  • oubox pattern
  • CompositeItemWriter
  • AWS 클라우드 환경
  • Spring Actuator
  • spring boot redis cache
  • Enum ==
  • redis cache
  • kafka oubox
  • cursorAI
  • Enum equals
  • sse vs websocket
  • Spring boot Actuator
  • spring boot gzip
  • spring boot jpa crud
  • no `meta.properties` found in
  • cursor ai crud
  • Enum Equals ==
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바