[์šฐ๋ฆฌ์ง‘ ์›น ์„œ๋น„์Šค ์ œ์ž‘ ํ”„๋กœ์ ํŠธ] Repository Test Could not autowire. No Beans of 'SystemManualRepository' type found.

2021. 9. 30. 00:16ใ†๊ฐœ๋… ์ •๋ฆฌ ์ž‘์—…์‹ค/๋ฌธ์ œ ์ •๋ฆฌ

728x90
๋ฐ˜์‘ํ˜•

๐Ÿ’ฅ ๋ฌธ์ œ ๋ฐœ์ƒ

 

์œ„์™€ ๊ฐ™์ด Jpa๋กœ ๋งŒ๋“  Repository ๊ฐ์ฒด๋ฅผ DIํ•  ์ˆ˜ ์—†๋‹ค๋Š” Error๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ์ด์—์š”.

 

 

๐Ÿ’ก ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

 

์ฒ˜์Œ์—๋Š” ์ด๋ ‡๊ฒŒ Repository๋ฅผ ๊ตฌ์„ฑํ•˜์˜€์—ˆ๋Š”๋ฐ, ํ˜น์‹œ๋‚˜ ํ•˜๋Š” ๋งˆ์Œ์— ์•„๋ž˜์™€ ๊ฐ™์ด ํ•ด ๋ณด์•˜๋‹ต๋‹ˆ๋‹ค!

 

๋ฐ˜์‘ํ˜•

์ด๋ ‡๊ฒŒ @Repository๋ฅผ ์„ค์ •ํ•œ ๊ฒƒ์ด์—์š”.

 

๊ทธ๋žฌ๋”๋‹ˆ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ต๋‹ˆ๋‹ค!

 

 


 

์ฃผ๋‹ˆํ•˜๋ž‘์˜ ๊ธ€์ด ๋งˆ์Œ์— ๋“œ์…จ๋‚˜์š”? ๊ตฌ๋…๊ณผ ๊ณต๊ฐ! ๊ทธ๋ฆฌ๊ณ , ๋Œ“๊ธ€ ๊ทธ๋ฆฌ๊ณ  ๋ฐฉ๋ช…๋ก์€ ์ฃผ๋‹ˆํ•˜๋ž‘์—๊ฒŒ ๋งŽ์€ ํž˜์ด ๋ฉ๋‹ˆ๋‹ค.

728x90
๋ฐ˜์‘ํ˜•