Chapter III SpringBoot - Part 1
Chapter III SpringBoot - Part 1
NTIC TLSI L3 GL
Spring Boot
2
SPRING
§ The Spring Framework is a comprehensive and modular framework for building
enterprise applications in Java.
applications.
§ It came out to address the complexity of J2EE and to make development easier.
§ Reducing Repetitive code which needed often and focus on the main logic .
3
4
STRENGTHS
§ Inversion of Control (IoC) and Dependency Injection (DI) to reduce the coupling between
the components of an application which enables: enhance flexibility and extensibility,
promote testability, make debugging and maintenance easier, promotes reusability, etc.
5
6
PROBLEMS
§ Complex Configuration: Configuring a Spring application traditionally required a
significant amount of XML or Java-based configuration.
§ Boilerplate Code: Spring applications often required a lot’s of repeated code for setting
up basic features like web servers, data access.
§ Complexity for Simple Projects: For very simple applications, using Spring might be
overkill. In such cases, a lighter-weight framework might be more appropriate.
7
A SOLUTION
Spring Boot
§ standalone
production-ready
8
FEATURES
§ Opinionated Defaults: Spring Boot comes with pre-defined settings and configurations
for various aspects of application development.
§ Reduces the need for developers to make many decisions about configurations.
§ Production-Ready: Spring Boot is designed to create applications that are ready for
production deployment.
§ It includes features like health checks, metrics, and ready-to-use management endpoints,
§ No Code Generation or Requirement for XML Configuration: Spring Boot eliminates the need for
10
FEATURES
§ Spring Boot Starters: Spring Boot provides a collection of pre-defined templates, known as
"starters," which include commonly used dependencies and boilerplate code for various types of
applications (e.g., web applications, data access, messaging, etc.).
§ Spring Initializer: This is a tool provided by the Spring team to generate a new Spring Boot
11