Spring Boot
Spring Boot
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
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. Java 1.8
2. Maven 3.0+
3. Spring Framework 5.0.0.BUILD-SNAPSHOT
4. IDE STS ( Spring Tool Suite)
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.
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.
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: 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)