Intro to Springboot

Image result for spring boot

Spring boot will handle our configuration for us , so we can focus on the coding part of a application, and dependencies .

It’s good to be lazy and spring boot framework provides a faster way to set up, configure , and run a simple web based application.

Smartly chooses our dependencies , and auto configures all the features that we want to use .

Image result for spring boot

So again ,

In summary :

Framework that we can plug and play , it provides some core APIS , we don’t have to do some of the configuration or set the security , things are already built in for u such as jamx stuff , restful APIS .

  • Easy to create stand alone applications
  • No need for xml configurations , just use annotations
  • Metric , and externalized configuration

Some key components :

Configuration = achieve loose coupling in a project

Dependency Injection = dynamically on the fly object creation  .

Controller layer : responsible to handle http requests . Get , put , post , delete requests . While they are sent to our server , we can offload that our service layer .

Service layer : Responsible to  handle all business logic in the application .

Repository  = abstraction layer to  facilitate crud operations . . Makes life easy for testing purposes .

DAO layer  : We need to interact to a data access object to save/receive info from a database .

Pom file = get all the dependencies . , heart of maven project

Leave a comment