![]() |
The Spring Boot is built on top of the core Spring framework. It is a simplified and automated version of the spring framework. The spring boot follows a layered architecture in which each layer communicates to other layers(Above or below in hierarchical order). The spring boot documentation provides the following definition to the Spring Boot Framework.
The main aim of spring boot is to remove the XML and annotations-based configuration settings from the application. Along with this spring boot provides the following benefits such as opinionated(options to later change the configuration), convention over configuration, stand-alone, and production-ready. Spring Boot LayersThe spring boot consists of the following four layers:
![]() Fig 1 – Layers Of Spring Boot 1. Presentation Layer The presentation layer is the top layer of the spring boot architecture. It consists of Views. i.e., the front-end part of the application. It handles the HTTP requests and performs authentication. It is responsible for converting the JSON field’s parameter to Java Objects and vice-versa. Once it performs the authentication of the request it passes it to the next layer. i.e., the business layer. 2. Business Layer The business layer contains all the business logic. It consists of services classes. It is responsible for validation and authorization. 3. Persistence Layer The persistence layer contains all the database storage logic. It is responsible for converting business objects to the database row and vice-versa. 4. Database Layer The database layer contains all the databases such as MySql, MongoDB, etc. This layer can contain multiple databases. It is responsible for performing the CRUD operations. Spring Boot Flow Architecture![]() Fig 2 – Spring boot flow architecture Explanation:
|
Reffered: https://www.geeksforgeeks.org
Geeks Premier League |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |