Injection 에 μžˆμ–΄μ„œ, Constructor Injection κ³Ό Setter Injection 두 κ°€μ§€λ₯Ό μ‚΄νŽ΄λ³΄μ•˜λ‹€. 이듀은 spring.io development team 이 μΆ”μ²œν•˜λŠ” λ°©μ‹μ΄μ§€λ§Œ, Field Injection μ΄λΌλŠ” μΆ”μ²œν•˜μ§€ μ•ŠλŠ” Injection 방식도 ν•˜λ‚˜ μ‘΄μž¬ν•œλ‹€.

legacy project μ—μ„œλŠ” κ½€λ‚˜ Field Injection 을 자주 μ‚¬μš©ν–ˆμ§€λ§Œ, μ‹œκ°„μ΄ 흐λ₯΄λ©΄μ„œ Unit Test 에 μžˆμ–΄ 어렀움이 μžˆλ‹€λŠ” 것을 μ•Œκ³  μ΅œκ·Όμ—λŠ” 거의 쓰이지 μ•Šκ³  μžˆλ‹€.

@Autowired
private Coach myCoach;

Field Injection 은 μœ„ 처럼 Constructor λ‚˜ Setter λ₯Ό μ „ν˜€ μ‚¬μš©ν•˜μ§€ μ•ŠλŠ”λ‹€. κ·Έλƒ₯ λ‹¨μˆœνžˆ field 에 @Autowired annotation 을 λ‹¬μ•„μ€ŒμœΌλ‘œμ¨ Injection 을 μˆ˜ν–‰ν•œλ‹€.