Skip to content

Latest commit

 

History

History
87 lines (52 loc) · 2.69 KB

File metadata and controls

87 lines (52 loc) · 2.69 KB

Spring_SpringBoot

Guide for Spring Framework and Spring Boot

Spring

Spring has the many Projects - Spring Boot , framework , services

Prerequisites for Java Spring:

Core Java:
Understanding the basics of Java programming is essential, as Spring applications are written in Java. This includes knowledge of Java syntax, loops, control statements, data types, variables, strings, arrays, and exception handling1.

### Object-Oriented Programming (OOP):

### Collections Framework:

Familiarity with Java collections such as List, Map, Set, etc., is important for managing data.

### Servlets and JSP:

Basic understanding of Servlets and JavaServer Pages (JSP) is beneficial, especially if you plan to develop web applications using Spring MVC.

### Spring Core Basics:

Knowledge of Spring core concepts such as Dependency Injection (DI), Spring containers, BeanFactory, ApplicationContext, Spring AOP, Spring Beans, and bean scopes.

### Build Tools:

Familiarity with build tools like Maven or Gradle, which are commonly used to manage dependencies and build Spring projects.

### Basic Knowledge of Databases:

Understanding how to interact with databases using JDBC or ORM frameworks like Hibernate can be helpful.

### RESTful Services:
Basic understanding of RESTful web services and how to create them using Spring Boot.

Spring

Spring is Framework and it is also lightweight framework,
It works with the POJOs (plain Old Java Object).

It was dependency injection now it has multiple dependecy, It is Ecosystem
> It can build microservices , Reactive app, cloud and serveless app

(It has the EJB , Struts, Hibernate all of the in one framework )

Spring Boot:

On the top of the Spring the SpringBoot Works on it , 
It will create the project which works on the first go, no need to do the much configuration.

Spring Boot 3 works on the spring6.


Spring Docs

https://docs.spring.io/spring-framework/reference/index.html

IOC and DI

1. Inversion of control --> Inveritng the control : {Programmer create the object and control the flow of the  object } ---> create , maintain and destroy the object by programmer so you role sould be biz logic not the object control ---> So create Objcet and Control  it Spring do it with IOC Container .
-> IOC container will have the object and Spring will create 
-> IOC is the principle

2. Dependency Injection : to inject the cpu object of cpu class into the laptop class we need the dependecy injection to inject it into laptop class . both the obj are avl in the IOC container.

Dependency Injection Using the Spring Boot:

DI in the Spring

 Any objects crerated by the spring is called the beans