๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

rollback2

[Spring] @Transactional์ด ์ ์šฉ๋˜์ง€ ์•Š์„ ๊ฒฝ์šฐ(๋กค๋ฐฑ์ด ์•ˆ๋˜๋Š” ์ด์œ ) 1. Checked Exception์ผ ๊ฒฝ์šฐ ์‚ฌ์‹ค ์ด ํ•ญ๋ชฉ์— ๋Œ€ํ•œ ์„ค๋ช…์„ ์œ„ํ•ด ์–ด์ œ java์˜ error์™€ exception์— ๋Œ€ํ•ด ํฌ์ŠคํŒ…์„ ํ–ˆ๋‹ค. Checked Exception์ด ๋ญ”์ง€ ๋ชจ๋ฅธ๋‹ค๋ฉด ๋จผ์ € ์•„๋ž˜ ํฌ์ŠคํŒ…์„ ๋ณด๊ณ  ์˜ค๋Š” ๊ฒƒ์„ ์ถ”์ฒœ! [Java] Error, Checked Exception, Unchecked Exception ๋น„๊ต ์ž๋ฐ”์—์„œ๋Š” ์˜ˆ์™ธ๋ฅผ ํฌ๊ฒŒ Error์™€ Exception์œผ๋กœ ๊ตฌ๋ถ„ํ•˜๊ณ , Exception์€ RuntimeException ์ƒ์† ์—ฌ๋ถ€์— ๋”ฐ๋ผ Checked Exception, Unchecked Exception์œผ๋กœ ๊ตฌ๋ถ„๋œ๋‹ค. Error ์‹œ์Šคํ…œ์— ๋น„์ •์ƒ์ ์ธ ์ƒํ™ฉ์ด ๋ฐœ์ƒํ•œ ๊ฒฝ.. ynzu-dev.tistory.com Checked Exception๋Š” ์˜ˆ์™ธ์ƒํ™ฉ ๋ฐœ์ƒ์‹œ ๋กค๋ฐฑ์ฒ˜๋ฆฌ๋ฅผ ํ•˜.. 2022. 1. 13.
[JAVA] Error, Checked Exception, Unchecked Exception ๋น„๊ต ์ž๋ฐ”์—์„œ๋Š” ์˜ˆ์™ธ๋ฅผ ํฌ๊ฒŒ Error์™€ Exception์œผ๋กœ ๊ตฌ๋ถ„ํ•˜๊ณ , Exception์€ RuntimeException ์ƒ์† ์—ฌ๋ถ€์— ๋”ฐ๋ผ Checked Exception, Unchecked Exception์œผ๋กœ ๊ตฌ๋ถ„๋œ๋‹ค. Error ์‹œ์Šคํ…œ์— ๋น„์ •์ƒ์ ์ธ ์ƒํ™ฉ์ด ๋ฐœ์ƒํ•œ ๊ฒฝ์šฐ๋กœ ์‹œ์Šคํ…œ ๋ ˆ๋ฒจ์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์‹ฌ๊ฐํ•œ ์ˆ˜์ค€์˜ ์˜ค๋ฅ˜๋ฅผ ์˜๋ฏธํ•˜๋ฉฐ, ๊ฐœ๋ฐœ์ž๊ฐ€ ์—์ธกํ•  ์ˆ˜ ์—†๊ธฐ์— ๋ฏธ๋ฆฌ Handlingํ•  ์ˆ˜ ์—†๋‹ค. Exception ๊ฐœ๋ฐœ์ž๊ฐ€ ๊ตฌํ˜„ํ•œ ๋กœ์ง์—์„œ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์œผ๋กœ ๊ฐœ๋ฐœ์ž๊ฐ€ ๋ฏธ๋ฆฌ ์˜ˆ์ธกํ•˜์—ฌ ๋ฐฉ์ง€ํ•  ์ˆ˜ ์žˆ์–ด์„œ ์ƒํ™ฉ์— ๋งž๊ฒŒ Handling ํ•ด์•ผํ•œ๋‹ค. ์•„๋ž˜๋Š” Checked Exception๊ณผ Unchecked Exception์„ ๋น„๊ตํ•œ ํ‘œ์ด๋‹ค. Checked Exception Unchecked Exception ๋กœ์ง์—์„œ ์˜ˆ์™ธ์ฒ˜๋ฆฌ ์—ฌ.. 2022. 1. 12.
728x90
๋ฐ˜์‘ํ˜•