๋ฐ˜์‘ํ˜•

srping์ˆœํ™˜์ฐธ์กฐ 1

[Springboot] The dependencies of some of the beans in the application context form a cycle ์˜ค๋ฅ˜ / ์ƒ์„ฑ์ž ์ฃผ์ž… ์‹œ ์ˆœํ™˜ ์ฐธ์กฐ ๋ฐœ์ƒ

Intro spring boot์—์„œ service๋ฅผ ์ฃผ์ž…ํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋˜ ๋„์ค‘ ๋‹ค์Œ์˜ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜์˜€์Šต๋‹ˆ๋‹ค. The dependencies of some of the beans in the application context form a cycle ์ธํ…”๋ฆฌ์ œ์ด ํ„ฐ๋ฏธ๋„์— ์ˆœํ™˜ ์ฐธ์กฐ๋˜๊ณ  ์žˆ๋‹ค๋Š” ํ‘œ์‹œ์™€ ํ•จ๊ป˜ ์ž˜ ์˜ฌ๋ผ๊ฐ€๋˜ ์„œ๋ฒ„๊ฐ€ ๋™์ž‘ํ•˜์ง€ ์•Š์•˜๋”๊ตฐ์š”.. Why? ์ฒ˜์Œ ๋ณด๋Š” ์˜ค๋ฅ˜๋ผ์„œ ์ด๊ฒŒ ๋ญ˜๊นŒ ์‹ถ์—ˆ์Šต๋‹ˆ๋‹ค. ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ ๋‘ ํŒŒ์ผ์—์„œ ์„œ๋กœ ๋™์ผํ•˜๊ฒŒ ์ƒ์„ฑ์ž๋ฅผ ์ฃผ์ž…ํ•ด ์‚ฌ์šฉํ•ด์„œ ์ˆœํ™˜ ์ฐธ์กฐ๊ฐ€ ์ผ์–ด๋‚˜๊ณ , ๋•Œ๋ฌธ์— ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋˜ ๊ฒƒ์ด์˜€์Šต๋‹ˆ๋‹ค. How to solve the problem ๊ตฌ๊ธ€๋งํ•œ ๊ฒฐ๊ณผ, ์ˆœํ™˜ ์ฐธ์กฐ ์˜ค๋ฅ˜๋ฅผ ํ•ด๊ฒฐํ•  ๋ฐฉ๋ฒ•์€ ํฌ๊ฒŒ 3๊ฐ€์ง€๊ฐ€ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. #1 application.yml ๋ณ€๊ฒฝ spring: applicati..

๋ฐ˜์‘ํ˜•