Learn Spring
Build REST APIs in Java with Spring and Spring Boot: how web requests flow, controllers and request mappings, beans and dependency injection, Spring Boot's auto-configuration, and persisting data with Spring Data JPA and H2.
- Intermediate level
- 5 modules
- 17 lessons
- 68 quiz questions
Syllabus
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
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
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
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
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