참고:
- https://offbyone.tistory.com/405
- https://dzone.com/articles/spring-transactional-amp-exceptions
- https://cheese10yun.github.io/checked-exception/
@Transactional의 rollback 조건
Unchecked Exception인 경우에만 rollback 처리된다.
예를 들어,
(1) RuntimeException 발생한 경우 (handling해도 마찬가지)
(2) Checked Exception을 handling하지 않은 경우
'IT > Spring Framework' 카테고리의 다른 글
Spring vs Spring Boot (0) | 2020.05.29 |
---|---|
AtomicInteger와 Integer 비교 (0) | 2020.04.25 |
@Transactional 사용 목적 (0) | 2019.10.24 |
@Component, @Service, @Repository, @Controller의 차이 (0) | 2019.06.10 |
Netty 개념 (0) | 2019.01.19 |