Skip to content

Commit

Permalink
fix: 트랜잭션 타임아웃 AOP 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chhs2131 committed Aug 29, 2024
1 parent 5be9a54 commit 51010f4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ public Object handleCustomTransaction(ProceedingJoinPoint joinPoint, Transaction
}

return result; // 정상 수행한 결과 반환
} catch (Throwable throwable) {
} catch (RuntimeException ex) {
status.setRollbackOnly();
throw new RuntimeException(throwable);
throw ex;
} catch (Throwable e) {
log.error("message={}", e.getMessage(), e);
throw new RuntimeException("처리할 수 없습니다.");
}
});
}
Expand Down

0 comments on commit 51010f4

Please sign in to comment.