One Pager Cheat Sheet
- Spring Boot is a Java-based
framework
that provides an opinionated default configuration and pre-packaged solutions to quickly create "production-ready" apps and prototype new concepts. - Spring Boot provides a default configuration for creating
customized
andadapted
applications of various types, including non-web applications, with an embedded web server available for web applications if required. - Spring Boot has many
important features
, such asThe Spring actuator
,The Spring initializer
,The Spring CLI
, andauto-configuration
, which can be seen in the diagram above. - Spring Boot is preferred for its
auto-configuration
,embedded servers
,health checks
, andsecurity features
, as well as its simplicity, ease of use, flexibility, and large active community that helps with problems and enables it to be used in a variety of applications. - Spring provides comprehensive tools for developing applications, but requires a lot of manual configuration, whereas Spring Boot is a framework built on top of Spring that simplifies and streamlines the process, eliminating the need for manual setup.
- Spring is an ideal choice for large-scale projects due to its comprehensive tool set and extensive configuration options, allowing for greater
flexibility
andcontrol
of the development environment. - The Spring Boot
starter dependency
provides developers with a quick and easy way to get started on a new project, by adding pre-configured dependencies classified according to the type of project. - Spring Boot consists of a
Presentation Layer
,Business Layer
,Persistence Layer
andDatabase Layer
, responsible for handling user interactions, implementing business logic and carrying out CRUD operations. - HTTP requests are
mapped
to the controller, whereservice logic
is called,data is mapped to JPA
and, if no errors occur, a JSP page isreturned
to the user. - The Spring Boot Actuator provides a variety of
endpoints
that allow you to monitor and manage your Spring Boot application, allowing you to view information about itsfunctionality
,configuration
, andstate
, as well as utilize additional features for auditing, caching, and security. - Yes, the Spring Boot Actuator offers a variety of
HTTP endpoints
,health checks
,metrics
andJMX
, allowing for extensive observation and control of a Spring Boot application. - You can override the default port number
(server.port)
in the application.properties file to change the port for your Spring Boot application.