1.1 Container, Dependency and IOC
In this article, I'm going to answer the first 15 questions of Section 1.1 from the Professinal VMware Spring Certificate study guide. Those questions are:
- What is dependency injection and what are the advantages of using it?
- What is an interface and what are the advantages of making use of them in Java?
- What is an ApplicationContext?
- How are you going to create a new instance of an ApplicationContext?
- Can you describe the lifecycle of a Spring Bean in an ApplicationContext?
- How are you going to create an ApplicationContext in an integration test?
- What is the preferred way to close an application context? Does Spring Boot do this for you?
- Are beans lazily or eagerly instantiated by default? How do you alter this behavior?
- What is a property source? How would you use @PropertySource?
- What is a BeanFactoryPostProcessor and what is it used for? When is it invoked?