Skip to content

Spring 트랜잭션에서는 왜 런타임 예외에 대해서만 롤백을 할까 #5

@minnseong

Description

@minnseong

제목에 달린 질문에 대해서 생각하고 답하기 전에 Unchecked Exception과 Checked Exception에 대해서 정리해보기

  • Unchecked Exception과 Checked Exception에 대해서 정리
  • 자주 커스텀 예외를 만들 때 Runtime Exception을 상속해서 만드는데 그 이유는?

  • 스프링 트랜잭션은 기본적으로 Runtime Exception(UnChecked Exception)에 대해서는 롤백을 하고, Checked Exception에 대해서는 롤백을 하지 않는데, 그 이유는 무엇일까?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions