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 XMLIntroducing the Spring Application Context and Spring’s XML-based configuration language
Constructor vs Setter Dependency InjectionThe 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 them
Creating Spring Application Context Using XMLSpring 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.