0% found this document useful (0 votes)
15 views1 page

SpringBoot Full Notes

The document provides an overview of the Spring Framework and Spring Boot, highlighting their purpose in building enterprise applications and simplifying development. Key features of Spring Boot include auto-configuration, embedded servers, starter dependencies, and production readiness. It also outlines core concepts such as Inversion of Control (IoC), Dependency Injection (DI), and how to set up a project using Spring Initializr.

Uploaded by

anushkasharma123
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

SpringBoot Full Notes

The document provides an overview of the Spring Framework and Spring Boot, highlighting their purpose in building enterprise applications and simplifying development. Key features of Spring Boot include auto-configuration, embedded servers, starter dependencies, and production readiness. It also outlines core concepts such as Inversion of Control (IoC), Dependency Injection (DI), and how to set up a project using Spring Initializr.

Uploaded by

anushkasharma123
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Spring Boot Complete Basics - Notes

============================================================
1. What is Spring Framework?
------------------------------------------------------------
- A Java framework for building enterprise applications.
- Provides IoC (Inversion of Control) and DI (Dependency Injection).

============================================================
2. What is Spring Boot?
------------------------------------------------------------
- Built on top of Spring Framework.
- Makes Spring development fast and easy.

Features of Spring Boot:


* Auto-Configuration: Automatically configures beans based on dependencies.
* Embedded Server: Comes with Tomcat/Jetty; no WAR deployment needed.
* Starter Dependencies: Pre-packaged dependencies (e.g., spring-boot-starter-web).
* Production Ready: Metrics, health checks (via Actuator).

============================================================
3. Core Concepts:
------------------------------------------------------------
- IoC: Spring controls object creation instead of developer.
- DI: Spring injects dependencies automatically.
- Bean: An object managed by Spring IoC container.
- Configuration: Defines beans using @Configuration and @Bean.
- Annotations:
* @Component, @Service, @Repository -> Mark classes as beans.
* @Autowired -> Injects beans automatically.

Diagram (IoC & DI Flow):


Spring Container
|
|--- Creates Beans (@Component, @Service)
|--- Injects dependencies (@Autowired)

============================================================
4. Setting Up Project (Spring Initializr):
------------------------------------------------------------
Steps:
- Go to [Link]
- Choose: Maven, Java, Spring Boot version.
- Add dependencies: Spring Web.

You might also like