Spring Boot

Let’s explore what is Spring Boot :

Spring boot is a framework that essentially we can plug and play, we don’t have to do most if not all of the the configuration that we need if we wished to create an application. While also having built in tools such as jamx , restful apis, security .

Why is this so cool ? For developers this is awesome ! since it means for us we don;t need to create XML configurations , instead just use annotations . Metric , and externalized configuration . All of this makes it very easy to create stand alone applications.

Image result for spring boot

Let’s explore and get used to some terminology that we will encounter while utilizing Spring Boot :

Pom File = The heart of the maven project , where we get all the dependencies from . It is an XML file that contains information about the project and configuration details used by Maven to build the project.

Controller Layer = Responsible of handling the HTTP requests . Get , Put , Post , Delete requests. While they are sent to our server, we can offload that to our service layer .

Service Layer = Responsible of handling all business logic in the application

Image result for spring boot service layer

Repository = abstraction layer to facilitate crud operations , makes life easy for testing . mechanism for encapsulating storage, retrieval, and search behavior which emulates a collection of objects.

Lastly let’s look what dependency injection means in my own words : Providing objects that an object needs (its dependencies) instead of having it construct them itself. Which the injection can be done through a constructor . In other words giving an object instance variables.

Leave a comment