Spring Presentation Docs
Spring Presentation Docs
Why Spring?
→ simplifies java development, reduces boilerplate code,support for annotation-
Based configuration for easy project setup.
→Modular and LightWeight,can be used for small and large applications.
→Supports Multiple Architecture like Monolithic apps, microservices and
Cloud based architectures.
→rapid development: provides built-in support for transaction management
Security,database itegrations, integration with Hibernate, JPA.
How Spring Works Under the Hood?
What does spring do for us?
It helps us with creation of java
Objects and maintain it lifecyle
Injection of objects wherever we
Need.
→Inversion of Control
→Spring Bean(java object)
→spring Core container
→Ioc container
Inversion Of Control
Inversion of control is design principle
Where the control of creation, configuration
Is shifted from application code to a
Framework or container, which is achieved
Through Depedency Injection
Benefits
Loose Coupling
In spring Container acts as Invversion
Of control it takes the control from the
Developer, so developer can focus
Of Business logic.
Spring Does with the help of configuration
File in which we define our beans.
IOC Container
It is one component in Spring
Core, it is one which helps us
To create object for our
Depedencies.
Role
IOC takes the creation,
Instantiation,
Ioc Container
Spring Project Structure
What are the things needs to create Spring project