Spring Bean Configuration Xml File. In this xml file, we will define a base package of the project. • to make a java pojo class as spring bean it must be configured in the spring bean configuration file (xml) to take a spring container to create and manage that spring bean class object.
The central motivation for moving to xml schema based configuration files was to make spring xml configuration easier. Annotating a class with the @configuration annotation indicates that the class will be used by javaconfig as a source of bean definitions.