Everything You Need to Know About Spring Core
Container
It is a program/App that manages the life cycle of the given component.
Why We need the containers?
Web Applications /Dynamic Applications are network/internet based they have lots of simultaneous requests from lots end users , so to receive those requests, to map and execute the components of the web applications /distributed applications we need the automated environment that is containers
\==> request from browser
\==>map request to appropriate web component
\==> execution of the web component is taken by servlet container.
\==> from web server response is given to browser
Spring Containers
Bean Factory IOC Containers
Application Context IOC Containers
IOC Containers are given for Life Cycle Management and Dependency Management.
The java class whose object is created and managed by spring IOC Container is called Spring Bean.
We can use either xml configuration/annotation configuration to make underlying IOC Container taking java code as the spring bean.
passing the information about the java code to container for special recognitions of java code is called configuration.
Xml configuration file we can pass instructions /inputs to the IOC Containers is called spring config file .
any file name.xml is is taken as the spring configuration file but it is recommended to take applicationContext.xml
we take the support of < bean> tag in spring bean config file
In annotation driven configuration we use @component annotation to user-defined class as spring bean.
In annotation driven configuration configuration to make predefined class as spring bean we can place @Bean method .
Thank you….