Home›Spring Boot Tutorial
Free course
Spring Boot Tutorial
Learn Spring Boot from zero, one small and easy step at a time, and build a complete REST API for a bookshop. Every idea is explained with slides first, then run for real with Spring Boot 4 and Java 17, so you see every real response, log line and test result.
Course contents
Every lesson has its own page with the explanation, code you can copy, the real output, screenshots from the video, and a link that jumps straight to that moment in the video.
1. What Spring Boot Is, Where Spring Boot Is Used and How a Web App Works
2. What You Need, Spring Initializr and The Project Structure
3. The Main Class, Running the App and Your First Endpoint
- The Main Class8:14
- Running the App9:40
- Your First Endpoint10:54
4. HTTP Methods, Status Codes and JSON
- HTTP Methods12:18
- Status Codes13:49
- JSON15:11
5. Testing with curl, @RestController and @GetMapping
- Testing with curl16:37
- @RestController17:57
- @GetMapping19:12
6. Path Variables, Query Parameters and Practice: A Greeting API
- Path Variables20:50
- Query Parameters22:14
- Practice: A Greeting API23:43
7. What REST Is, Returning Objects as JSON and Records for Data
- What REST Is25:04
- Returning Objects as JSON26:22
- Records for Data27:38
8. @PostMapping and @RequestBody, @PutMapping and @DeleteMapping
- @PostMapping and @RequestBody29:08
- @PutMapping30:50
- @DeleteMapping31:56
9. ResponseEntity, Status Codes in Practice and Practice: A Book API in Memory
10. Inversion of Control, Beans and Dependency Injection
- Inversion of Control36:43
- Beans38:04
- Dependency Injection39:24
11. @Service, Constructor Injection and @Component and Friends
- @Service40:43
- Constructor Injection42:02
- @Component and Friends43:22
12. @Configuration and @Bean, Bean Scopes and Practice: Layers
- @Configuration and @Bean44:37
- Bean Scopes45:53
- Practice: Layers47:28
13. application.properties, @Value and @ConfigurationProperties
- application.properties48:59
- @Value50:19
- @ConfigurationProperties51:37
15. CommandLineRunner, Environment Variables and Practice: A Configurable Shop
- CommandLineRunner57:16
- Environment Variables58:47
- Practice: A Configurable Shop1:00:08
16. Why a Database, The H2 Database and What JPA Is
- Why a Database1:01:46
- The H2 Database1:02:56
- What JPA Is1:04:26
17. Entities, Ids and Generated Values and Repositories
- Entities1:05:45
- Ids and Generated Values1:07:23
- Repositories1:08:42
18. CRUD with JpaRepository, Seeding Data and Practice: Books in a Database
- CRUD with JpaRepository1:10:06
- Seeding Data1:11:34
- Practice: Books in a Database1:12:52
19. Derived Query Methods, More Query Keywords and Sorting
- Derived Query Methods1:14:19
- More Query Keywords1:15:43
- Sorting1:17:05
20. Paging, @Query with JPQL and Native Queries
- Paging1:18:18
- @Query with JPQL1:19:47
- Native Queries1:20:57
21. Counting and Exists, Transactions and Practice: Search Books
- Counting and Exists1:22:19
- Transactions1:23:38
- Practice: Search Books1:25:13
22. Relationships, @ManyToOne and @OneToMany
- Relationships1:26:41
- @ManyToOne1:28:03
- @OneToMany1:29:01
23. Lazy Loading, Cascade and Many to Many
- Lazy Loading1:30:26
- Cascade1:31:51
- Many to Many1:33:11
24. DTOs for Relationships, Avoiding Endless JSON and Practice: Authors and Books
- DTOs for Relationships1:34:23
- Avoiding Endless JSON1:35:28
- Practice: Authors and Books1:36:58
25. Why Validate, Bean Validation and @Valid
- Why Validate1:38:29
- Bean Validation1:39:43
- @Valid1:40:59
26. Validation Errors, Custom Exceptions and @ResponseStatus
- Validation Errors1:42:28
- Custom Exceptions1:43:51
- @ResponseStatus1:44:54
27. @RestControllerAdvice, ProblemDetail and Practice: Clean Errors
- @RestControllerAdvice1:46:02
- ProblemDetail1:47:11
- Practice: Clean Errors1:48:24
28. Controller, Service, Repository, Mapping Entities to DTOs and Update Requests
- Controller, Service, Repository1:49:53
- Mapping Entities to DTOs1:51:25
- Update Requests1:52:31
29. PATCH, Filtering with Query Parameters and Pagination in the API
- PATCH1:53:47
- Filtering with Query Parameters1:54:52
- Pagination in the API1:55:49
30. API Versioning, CORS and Practice: A Complete Books API
- API Versioning1:57:06
- CORS1:58:33
- Practice: A Complete Books API1:59:55
31. Spring Security Basics, Locked by Default and SecurityFilterChain
- Spring Security Basics2:01:30
- Locked by Default2:02:39
- SecurityFilterChain2:03:46
32. Users and Passwords, Password Encoding and Roles
- Users and Passwords2:04:59
- Password Encoding2:06:01
- Roles2:07:16
33. Protecting Endpoints by Role, Method Security and Practice: A Secured API
- Protecting Endpoints by Role2:08:25
- Method Security2:09:41
- Practice: A Secured API2:11:00
34. Why Test, JUnit Basics and Testing a Service
- Why Test2:12:27
- JUnit Basics2:13:55
- Testing a Service2:15:22
35. Mockito, @WebMvcTest and MockMvc
- Mockito2:16:40
- @WebMvcTest2:18:09
- MockMvc2:19:26
36. @DataJpaTest, @SpringBootTest and Practice: Test the API
- @DataJpaTest2:20:50
- @SpringBootTest2:21:58
- Practice: Test the API2:23:19
37. Actuator, Health and Info and Packaging a Jar
- Actuator2:24:34
- Health and Info2:26:22
- Packaging a Jar2:27:55
38. Project: The Plan, Entities, Repositories and Service
- Project: The Plan2:29:19
- Project: Entities2:30:37
- Project: Repositories and Service2:31:38
39. Project: The Controller, Validation and Errors and Security
- Project: The Controller2:33:11
- Project: Validation and Errors2:34:22
- Project: Security2:35:33
40. Project: Tests, Where to Go Next and Course Recap
- Project: Tests2:36:31
- Where to Go Next2:37:42
- Course Recap2:38:34