Spring Boot Introduction
What is Framework? Framework means pre-written code structure or template, developers can reuse them to build their application no need to write everything from scratch. In real time example for framework, the house which is fully furnished, we just go and use them. Spring framework is developed by Rod Johnson in 2003. Spring framework makes the easy development of JavaEE application. Understanding Spring framework from Collection framework Collection framework Interfaces classes List ArrayList, LinkedList Set HashSet, LinkedHashSet, TreeSet Map HashSet, LinkedHashMap, TreeMap In Collection Framework, classes and Interfaces are already predefined. We just use them. Spring framework But in Spring Framework, we have to create our classes and Interfaces because if we are creating one application we only know the logics like which class have to do what. Annotations In Spring framework everything is done by Annotations. Annotation means metadata(data about data). Using annotation we tell to spring which class and interface doing which job. Note: In core java, we have seen @override that is annotation. Lets see few annotations here: Annotations which are used in class level: @Component @Controller @RestController @Service @bean @Configuration Annotations which are used in block level @RequestMapping @GetMapping @Value What is Spring Boot ? ** ** Spring Boot is a project that is built on the top of the Spring Framework. It provides an easier and faster way to set up, configure, and run both simple and web-based applications. What are the ways to create spring boot java application? 1.Spring Tool Suite IDE 2.Spring initializer (https://start.spring.io/) Spring Features: 1.Spring is everywhere – Streaming tv(Netflix) and online shopping (amazon,alibaba) 2.Spring is flexible- has the feature of Inversion of Control (IoC) and Dependency Injection (DI) 3.*Spring is productive *– to bring productive in springboot combines embedded web server and auto-configuration. 4.Spring is fast – Spring provides fast startup, fast shutdown, and optimized execution, by default. start a new Spring project in seconds, with the Spring Initializr at start.spring.io. Spring is secure- Third-party dependencies are also monitored closely, and regular updates are issued to help keep your data and applications as safe as possible. Spring is supportive- The Spring community is enormous, global, diverse, and spans folks of all ages and capabilities, from complete beginners to seasoned pros. Why should we use Spring Boot Framework? We should use Spring Boot Framework because: • The dependency injection approach is used in Spring Boot. • It simplifies integration with other Java frameworks like JPA/Hibernate ORM, Struts, etc. • It reduces the cost and development time of the application. Goals of Spring Boot The main goal of Spring Boot is to reduce development, unit test, and integration test time. • Provides Opinionated Development approach • Avoids defining more Annotation Configuration • Avoids writing lots of import statements • Avoids XML Configuration. Advantages of Spring Boot • It creates stand-alone Spring applications that can be started using Java -jar. • It tests web applications easily with the help of different Embedded HTTP servers such as Tomcat, Jetty, etc. We don't need to deploy WAR files. • It provides opinionated 'starter' POMs to simplify our Maven configuration. • There is no requirement for XML configuration. • It offers a CLI tool for developing and testing the Spring Boot application. • It also minimizes writing multiple boilerplate codes (the code that has to be included in many places with little or no alteration), XML configuration, and annotations. • It increases productivity and reduces development time.

What is Framework?
Framework means pre-written code structure or template, developers can reuse them to build their application no need to write everything from scratch.
In real time example for framework, the house which is fully furnished, we just go and use them.
Spring framework is developed by Rod Johnson in 2003. Spring framework makes the easy development of JavaEE application.
Understanding Spring framework from Collection framework
Collection framework
Interfaces classes
List ArrayList, LinkedList
Set HashSet, LinkedHashSet, TreeSet
Map HashSet, LinkedHashMap, TreeMap
In Collection Framework, classes and Interfaces are already predefined. We just use them.
Spring framework
But in Spring Framework, we have to create our classes and Interfaces because if we are creating one application we only know the logics like which class have to do what.
Annotations
In Spring framework everything is done by Annotations.
Annotation means metadata(data about data).
Using annotation we tell to spring which class and interface doing which job.
Note: In core java, we have seen @override that is annotation.
Lets see few annotations here:
Annotations which are used in class level:
@Component
@Controller
@RestController
@Service
@bean
@Configuration
Annotations which are used in block level
@RequestMapping
@GetMapping
@Value
What is Spring Boot ?
**
**
Spring Boot is a project that is built on the top of the Spring Framework. It provides an easier and faster way to set up, configure, and run both simple and web-based applications.
What are the ways to create spring boot java application?
1.Spring Tool Suite IDE
2.Spring initializer (https://start.spring.io/)
Spring Features:
1.Spring is everywhere – Streaming tv(Netflix) and online shopping (amazon,alibaba)
2.Spring is flexible- has the feature of Inversion of Control (IoC) and Dependency Injection (DI)
3.*Spring is productive *– to bring productive in springboot combines embedded web server and auto-configuration.
4.Spring is fast – Spring provides fast startup, fast shutdown, and optimized execution, by default. start a new Spring project in seconds, with the Spring Initializr at start.spring.io.
Spring is secure- Third-party dependencies are also monitored closely, and regular updates are issued to help keep your data and applications as safe as possible.
Spring is supportive- The Spring community is enormous, global, diverse, and spans folks of all ages and capabilities, from complete beginners to seasoned pros.
Why should we use Spring Boot Framework?
We should use Spring Boot Framework because:
• The dependency injection approach is used in Spring Boot.
• It simplifies integration with other Java frameworks like JPA/Hibernate ORM, Struts, etc.
• It reduces the cost and development time of the application.
Goals of Spring Boot
The main goal of Spring Boot is to reduce development, unit test, and integration test time.
• Provides Opinionated Development approach
• Avoids defining more Annotation Configuration
• Avoids writing lots of import statements
• Avoids XML Configuration.
Advantages of Spring Boot
• It creates stand-alone Spring applications that can be started using Java -jar.
• It tests web applications easily with the help of different Embedded HTTP servers such as Tomcat, Jetty, etc. We don't need to deploy WAR files.
• It provides opinionated 'starter' POMs to simplify our Maven configuration.
• There is no requirement for XML configuration.
• It offers a CLI tool for developing and testing the Spring Boot application.
• It also minimizes writing multiple boilerplate codes (the code that has to be included in many places with little or no alteration), XML configuration, and annotations.
• It increases productivity and reduces development time.