Inflearn Community Q&A
@Autowired
Written on
·
411
0
1. OwnerController class안에서
@Autowired
private PetRepository petRepository;
로 의존성 주입을 했는데요.
의존성 주입이 되면.. 그 다음부터 뭘 할 수 잇는건가요?
2. IoC Container가 ApplicationContext라면,
그 안에 어떤 bean들이 들어가는지 알 수 있나요?
그리고 한 Package안에 여러개의 ApplicationContext가 자동으로 생기는건가요?
javaspring
Answer 3
1
0
0
213008651852
Questioner
답변 감사합니다.
그럼 주석처리해서 ApplicationContext에 Bean 등록을 할 수도 있지만, 자동으로 ApplicaionContext에 Bean 등록을 할 수도 있잖아요?
그럼 Owner Class는 왜 제외되는건가요?





