인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

kuninyb's profile image
kuninyb

asked

Spring Core Principles - Basics

Getting started with component scanning and automatic dependency injection

안녕하세요

Written on

·

208

0

의존관계 주입 시 타입을 기준으로 주입을 한다고 하셨는데 타입이 어떤 걸 의미하는지 헷갈립니다. 감사합니다

springoop

Answer 1

1

안녕하세요. GoodtoCU님, 공식 서포터즈 David입니다.

의존관계 주입 시 타입을 기준으로 주입

@Autowired
MemberService memberService;

위와 같은 코드가 있다면 MemberService 타입을 말합니다.

감사합니다.

kuninyb's profile image
kuninyb

asked

Ask a question