Syllabus

  1. 01Spring Basics and HTTPWhat Spring is and where it fits, how HTTP requests and responses work, the layout of a Spring Boot project and how to run it, and testing an API from the terminal with curl.4 lessons
    1. 01What Is Spring?
    2. 02Requests, Responses and REST
    3. 03Project Layout and Running Locally
    4. 04Testing APIs with curl
  2. 02Web Endpoints with ControllersHandle HTTP requests with @RestController: map paths and methods, read path variables, query parameters and JSON bodies, and control status codes and errors with ResponseEntity and ResponseStatusException.4 lessons
    1. 01REST Controllers and Mappings
    2. 02Path Variables and Query Parameters
    3. 03Request Bodies and Writing Endpoints
    4. 04Status Codes, ResponseEntity and Errors
  3. 03Beans, Injection and Spring BootThe technology under every Spring app: beans and the application context, dependency injection with stereotype annotations, bean scopes and lifecycle, and how Spring Boot's auto-configuration and externalized configuration work.3 lessons
    1. 01Beans and Dependency Injection
    2. 02Bean Scopes and Lifecycle
    3. 03What Spring Boot Does
  4. 04Planning Data AccessPlan how an API stores and changes data: the CRUD operations and how they map to HTTP, and the main options Spring offers for data access, from plain JDBC to Spring Data JPA.2 lessons
    1. 01CRUD and REST
    2. 02Data Access Options in Spring
  5. 05Persistence with Spring Data JPAPersist data with Spring Data JPA: map entities, generate repositories, use them from controllers for full CRUD, write derived and custom queries, and inspect the H2 database.4 lessons
    1. 01Mapping Entities
    2. 02Repositories and CRUD Endpoints
    3. 03Derived and Custom Queries
    4. 04Inspecting Data with the H2 Console