Spring IoC container is totally decoupled from the configuration metadata. There are three important methods to provide configuration metadata to the Spring Container:
- XML based configuration file.
- Annotation-based configuration
- Java-based configuration
In this series, we will learn about Spring Application Context and Spring’s XML-based configuration language
Tutorials in this series:
Spring Dependency Injection Using XML
Introducing the Spring Application Context and Spring’s XML-based configuration languageConstructor vs Setter Dependency Injection
The XML configuration files although verbose and more clean, but if not planned and written correctly, it becomes very hard to manage in big projects. In this article we will learn about constructor and setter injection, and when to use themCreating Spring Application Context Using XML
Spring application contexts can be bootstrapped in any environment (ex: JUnit tests, web application, standalone application, and so on). We will learn how to creating Spring Application Context Using XML and it's best practice.