Spring Framework

Features of Spring Framework

  1. Inversion of Control (IoC)
  2. Data Access
  3. MVC Framework
  4. Transaction Management
  5. Security
  6. Testing Support (Unit and integration testing)
  7. Internationalization and Localization

Spring Boot = Spring framework + Prebuilt Configuration + Embedded Servers

Different layers in Spring Boot Application

  1. Presentation Layer: This presents data to the users. It takes the request and forwards to the next layer
  2. Service layer: This has all business logic of the application. All the processing of the data is done here.
  3. Data Access Layer: This has all the repository classes and access the database.

Flow of data

Browser <-> controller <-> Service <-> Repository <-> Database