SPRING BOOT Introduction
SPRING BOOT
Spring Boot is a Java-based open source framework that makes it easy to create production-ready projects.
Spring Boot Introduction:
➔ Spring Boot is a very famous Java based framework and it is open source.
➔ It is built on top of the core Spring Framework.
➔ Spring Boot is most popular with enterprise application developers because of its project-friendly auto configuration and production-ready setup.
➔ Before Spring Boot came along, Spring developers had to do a lot of tedious XML-based configuration work, and it took time to even start coding for business logic.
➔ Spring Boot now solves most of these problems by providing a simple, ready-to-use, and production-grade framework, and developers can now focus more on their business logic than on project configuration.
Creating a Spring Boot project is easy.
Developers can create a SpringBoot project in three main ways.
Using Spring Initializer:
➔ This is a web interface provided by Spring. This is the most common and recommended method for any project that can be started with a very simple and basic setup.
➔ It is a user-friendly interface where all configurations can be customized and any required project dependencies can be easily added, such as by clicking on checkboxes.
➔ After completing the project configuration in the web interface, download, extract, and open the extracted project with any IDE of your interest and start development.
Using Integrated Development Environment (IDE):
➔ Most common IDEs like Eclipse, IntelliJ IDEA, Spring Tool Suite (STS) have initializr functionally integrated internally or via plugins.
➔ So the Spring Boot project can be created by following the IDE's wizard without going to the Spring Initializr website.
➔ In this case, there is no need for download or extraction, but they were required for the Spring Initializer web interface.
Using command-line tools:
➔ Spring Boot projects can be built via the command line using tools like Maven, Gradle, or Spring Boot CLI.
➔ These tools (Maven, Gradle, or Spring Boot CLI) use the Spring Boot Initializr service internally to build projects and manage dependencies.
➔ Creating projects with command line tools is useful for those who prefer to work with the command line, or other options are not available for a particular environment.