Concepts and purpose of Spring configuration file

Explain the concepts and purpose of Spring configuration file.

- A spring configuration file is an XML file which contains the information about classes and describes the process of configuration.

Explain the concepts and purpose of Spring configuration file.

- Spring configuration file is an XML file. This file contains the classes information and describes how these classes are configured and introduced to each other.
What does a simple spring application contain?
What does a simple spring application contain? - A spring application is like any other Java application. The applications contain classes, each of them perform a specific task with the application.......
Explain Bean lifecycle in Spring framework
Bean lifecycle in Spring framework - The bean’s definition is found by the spring container from the XML file and instantiates the bean..
What is bean wiring?
What is bean wiring? - Bean wiring is the process of combining beans with Spring container...
Post your comment
Discussion Board
Concept and purpose of spring configuration file
Spring configuration file is a file with .xml extension and the file contains information about the classes and interfaces and their dependencies. Using this file the spring container controls the life cycle of a spring bean and also Dependency Injection is achieved. Please refer below for a sample how a spring configuration file looks like.


// to be used if primitive type
// to be used if dependency is a reference


Mohammed R 03-14-2012