0% found this document useful (0 votes)
13 views6 pages

Spring Boot

Spring Boot is a module of the Spring framework designed for rapid application development, allowing for easier setup and configuration of Spring-based applications. It reduces development time and boilerplate code, offers embedded servers, and supports various plugins for integration with the Spring ecosystem. The main goal is to simplify the creation of production-ready web applications while avoiding XML configuration and minimizing developer effort.

Uploaded by

Dhiraj Patil
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)
13 views6 pages

Spring Boot

Spring Boot is a module of the Spring framework designed for rapid application development, allowing for easier setup and configuration of Spring-based applications. It reduces development time and boilerplate code, offers embedded servers, and supports various plugins for integration with the Spring ecosystem. The main goal is to simplify the creation of production-ready web applications while avoiding XML configuration and minimizing developer effort.

Uploaded by

Dhiraj Patil
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
You are on page 1/ 6

Reva Tech Software Solution

SPRING BOOT
What is Spring Boot

1. Spring Boot is a Spring module that provides the RAD (Rapid Application
Development) feature to the Spring framework.
2. 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.
3. It is used to create a stand-alone Spring-based application with minimal
Spring configuration(that own run).
4. Spring Boot is the combination of Spring Framework and Embedded Servers.
Without xml configuration
5. Latest Spring Boot version is 3.1 and spring is 6.0

Why Spring Boot?

1. To ease the Java-based applications Development, Unit Test and Integration


Test Process.
2. To reduce Development, Unit Test and Integration Test time by providing
some defaults.
3. To increase Productivity.

Advantages of Spring Boot

1. It is very easy to develop Spring Based applications with Java


2. It reduces lots of development time and increases productivity.
3. It avoids writing lots of boilerplate Code, Annotations and XML Configuration.
4. It is very easy to integrate Spring Boot Application with its Spring Ecosystem
like Spring JDBC, Spring ORM, Spring Data, Spring Security etc.
5. It follows “Opinionated Defaults Configuration” Approach to reduce Developer
effort
6. It allows us to build a stand-alone application with minimal or zero
configurations.
7. It provides Embedded HTTP servers like Tomcat, Jetty, undertow etc. to
develop and test our web applications very easily.
8. It provides CLI (Command Line Interface) tool to develop and test Spring
Boot(Java) Applications from command prompt very easily and quickly.
9. It provides lots of plugins to develop and test Spring Boot Applications very
easily using Build Tools like Maven and Gradle
10. It provides lots of plugins to work with embedded and in-memory Databases
very easily.

Documented By Reva Tech Software Solution (7972590331)


Reva Tech Software Solution

Goal of Spring Boot:

The main goal of Spring Boot Framework is to reduce Development, Unit Test and
Integration Test time and to ease the development of Production ready web
applications very easily compared to existing Spring Framework, which really takes
more time.

1. To avoid XML Configuration completely


2. To avoid defining more Annotation Configuration(It combined some existing
Spring Framework Annotations to a simple and single Annotation)
3. To avoid writing lots of import statements
4. To provide some defaults to quick start new projects within no time.
5. To provide Opinionated Development approach.

Prerequisite of Spring Boot

To create a Spring Boot application, following are the prerequisites.

1. Java 1.8
2. Maven 3.0+
3. Spring Framework 5.0.0.BUILD-SNAPSHOT
4. IDE STS ( Spring Tool Suite)

Documented By Reva Tech Software Solution (7972590331)


Reva Tech Software Solution
Spring vs Spring Boot

Spring Spring Boot

It is used Java EE framework It is used to develop REST APIs.


for building applications.

It aims to simplify Java EE It aims to shorten the code length and provide
development that makes the easiest way to develop Web Applications.
developers more
productive.

Primary feature is The primary feature of Spring Boot


dependency injection. is Autoconfiguration.(automatically configures
the classes)

It helps to make things It helps to create a stand-alone application with


simpler by allowing us to less configuration.
develop loosely
coupled applications.

The developer writes a lot It reduces boilerplate code.


of code (boilerplate code)
to do the minimal task.

To test the Spring project, Spring Boot offers embedded server such
we need to set up the sever as Jetty and Tomcat, etc.
explicitly.

It does not provide support It offers several plugins for working with an
for an in-memory database. embedded and in-memory database such as H2.

Developers manually define Spring Boot comes with the concept of starter in
dependencies for the Spring pom.xml file that internally takes care of
project in pom.xml. downloading the dependencies JARs based on
Spring Boot Requirement.

Documented By Reva Tech Software Solution (7972590331)


Reva Tech Software Solution
Spring Boot vs Spring MVC

Spring Boot Spring MVC

Spring Boot is a module of Spring for Spring MVC is a model view


packaging the Spring-based application controller-based web framework
with sensible defaults. under the Spring framework.

It provides default configurations to It provides ready to use features


build Spring-powered framework. for building a web application.

There is no need to build configuration It requires build configuration


manually. manually.

There is no requirement for a A Deployment descriptor


deployment descriptor(web.xml). is required.

It avoids boilerplate code and wraps It specifies each dependency


dependencies together in a single unit. separately.

It reduces development time and It takes more time to achieve the


increases productivity. same.

Spring Boot Features/Components

1. Spring Boot Auto configuration


2. Spring Boot Starter
3. Spring Boot CLI
4. Spring Boot Actuator
5. Spring Boot Initializer
6. Spring Boot IDEs

Documented By Reva Tech Software Solution (7972590331)


Reva Tech Software Solution
Ways to Create Spring Boot Project

This are four ways to crate maven project

1. Using Spring Boot CLI Tool


2. Using Spring STS IDE
3. Using Spring Initializr Website
4. Using Eclipse or any similar IDE and Maven simple project

Install STS

Step 1: Download Spring Tool Suite from https://spring.io/tools Click on the platform
which you are using. we are using the Windows platform.

Step 2: Double click on Executable jar, it will extract STS files

Step 3: Click on SpringToolSuite4(application file in extracted folder) Spring Tool


Suite 4 Launcher dialog box appears on the screen. Click on the Launch button. You
can change the Workspace if you want

Step 4: It starts launching the STS.

Lets create spring boot application using Spring.io initializr

Step 1: Open URL: http://start.spring.io/

Step 2: We are creating a Maven project and we know that every Maven project has
group and artifact id, so this interface provides us with placeholders where we can
enter group and artifact id. Also enter other details like
name,discription,packaging,java version etc

Step 3: Click on Add Dependence button and add all requested dependency(for web
application add Spring WEB)

Step 4: Click on GENERATE button, it will generate project ZIP file

Documented By Reva Tech Software Solution (7972590331)


Reva Tech Software Solution

Step 5: Unzip project on any location

Step 6: open STS and import maven project

Documented By Reva Tech Software Solution (7972590331)

You might also like