작성
·
224
0
궁금한게 그전에 핵심원리강의에서는
@Component
public class MemberServiceImpl implements MemberService {
private final MemberRepository memberRepository;
@Autowired
public MemberServiceImpl(MemberRepository memberRepository) {
this.memberRepository = memberRepository;
}
}
이런식으로 @Autowired로 주입을 받았는데 여기서는 왜 안쓴건가요?