Spring Core Module
1. This case module is used for developing Stand-alone applications in java.
2. This module will provide us a way of implementing the Dependency Injection (DI) in spring frame work.
3. Spring core module provides a spring container.
4. This core module will provide us a way of constructing spring configuration file.
5. This core module will provides us the way of implementing spring bean life cycle operations.
2. This module will provide us a way of implementing the Dependency Injection (DI) in spring frame work.
3. Spring core module provides a spring container.
4. This core module will provide us a way of constructing spring configuration file.
5. This core module will provides us the way of implementing spring bean life cycle operations.
Spring Bean:-
1. A java class used while constructing a spring application in spring bean.
2. A spring bean can be sometimes a POJO and sometimes may not be a POJO.
3. A spring bean may contain some properties (variable) optionally setter and getter methods and some business methods for implementing business logic.
4. A spring bean is not equal to a java bean because a java bean must contain a public without arguments constructer but a spring bean may or may not contain a public without arguments constructer.
5. Every java bean can be called as “Spring Bean” but a spring bean is May (or) may not be a java bean.
Spring Configuration File:-
1. It is an xml file, identifier with any name topics.xml.
2. We configure our spring beans and this dependency injection in to the spring configuration file. This is also called “WIRING” the beans.
3. In spring frame work, a spring container takes care about creating spring bean objects and injecting the dependency required for it. A spring container gets all the require information from this spring configuration file.
Syntax:
<anyname>.xml
<!--DTD-->
<beans>
<bean id= “id” “Fully qualified class name “>
------------
</bean>
</beans>
<anyname>.xml
<!--DTD-->
<beans>
<bean id= “id” “Fully qualified class name “>
------------
</bean>
</beans>
Visitors