Configuration metadata can be provided to Spring container in following ways:
- XML-Based configuration
- Annotation-Based configuration
- Java-based configuration
XML-Based configuration: In Spring Framework, the dependencies and the services needed by beans are specified in configuration files which are in XML format. These configuration files usually contain a lot of bean definitions and application specific configuration