[24기_정태호] spring tutorial 미션 제출합니다. - #7
Open
taiho0303-blip wants to merge 3 commits into
Open
Conversation
gilbert09031
left a comment
There was a problem hiding this comment.
1주차 과제 수고하셨습니다 !
잘 정리해주신 덕분에 저도 다시 읽어보면서 공부할 수 있었던 것 같아요 !
앞으로도 화이팅 💪
| 공통 로직 후처리 | ||
| ``` | ||
|
|
||
| 예를 들어 `@Transactional`이 붙은 메서드는 Proxy가 먼저 트랜잭션을 시작하고, 실제 메서드를 실행한 뒤 성공하면 Commit, 예외가 발생하면 Rollback한다. |
There was a problem hiding this comment.
https://hyperconnect.github.io/2025/02/10/spring-transactional-rollback.html
https://cheese10yun.github.io/checked-exception/
https://mangkyu.tistory.com/152
@Transactional은 모든 예외에 대해서 롤백을 보장할까요 ?
커스텀 예외를 작성할 때 왜 일반적으로 Exception이 아닌 RuntimeException을 상속받는지도 함께 고민해보면 좋을 것 같아요 !
Comment on lines
+7
to
+8
| @Data | ||
| @Entity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.