AI Hints
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.

📚 120 lessons▶ 2:38:34+ of video💻 201 code examples🖼 0 screenshots
The complete Spring Boot course, free on YouTubeWatch on YouTube ↗

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

  1. What Spring Boot Is0:00
  2. Where Spring Boot Is Used1:31
  3. How a Web App Works2:42

2. What You Need, Spring Initializr and The Project Structure

  1. What You Need4:08
  2. Spring Initializr5:34
  3. The Project Structure6:49

3. The Main Class, Running the App and Your First Endpoint

  1. The Main Class8:14
  2. Running the App9:40
  3. Your First Endpoint10:54

4. HTTP Methods, Status Codes and JSON

  1. HTTP Methods12:18
  2. Status Codes13:49
  3. JSON15:11

5. Testing with curl, @RestController and @GetMapping

  1. Testing with curl16:37
  2. @RestController17:57
  3. @GetMapping19:12

6. Path Variables, Query Parameters and Practice: A Greeting API

  1. Path Variables20:50
  2. Query Parameters22:14
  3. Practice: A Greeting API23:43

7. What REST Is, Returning Objects as JSON and Records for Data

  1. What REST Is25:04
  2. Returning Objects as JSON26:22
  3. Records for Data27:38

8. @PostMapping and @RequestBody, @PutMapping and @DeleteMapping

  1. @PostMapping and @RequestBody29:08
  2. @PutMapping30:50
  3. @DeleteMapping31:56

9. ResponseEntity, Status Codes in Practice and Practice: A Book API in Memory

  1. ResponseEntity33:12
  2. Status Codes in Practice34:15
  3. Practice: A Book API in Memory35:23

10. Inversion of Control, Beans and Dependency Injection

  1. Inversion of Control36:43
  2. Beans38:04
  3. Dependency Injection39:24

11. @Service, Constructor Injection and @Component and Friends

  1. @Service40:43
  2. Constructor Injection42:02
  3. @Component and Friends43:22

12. @Configuration and @Bean, Bean Scopes and Practice: Layers

  1. @Configuration and @Bean44:37
  2. Bean Scopes45:53
  3. Practice: Layers47:28

13. application.properties, @Value and @ConfigurationProperties

  1. application.properties48:59
  2. @Value50:19
  3. @ConfigurationProperties51:37

14. YAML, Profiles and Logging

  1. YAML52:58
  2. Profiles54:20
  3. Logging55:43

15. CommandLineRunner, Environment Variables and Practice: A Configurable Shop

  1. CommandLineRunner57:16
  2. Environment Variables58:47
  3. Practice: A Configurable Shop1:00:08

16. Why a Database, The H2 Database and What JPA Is

  1. Why a Database1:01:46
  2. The H2 Database1:02:56
  3. What JPA Is1:04:26

17. Entities, Ids and Generated Values and Repositories

  1. Entities1:05:45
  2. Ids and Generated Values1:07:23
  3. Repositories1:08:42

18. CRUD with JpaRepository, Seeding Data and Practice: Books in a Database

  1. CRUD with JpaRepository1:10:06
  2. Seeding Data1:11:34
  3. Practice: Books in a Database1:12:52

19. Derived Query Methods, More Query Keywords and Sorting

  1. Derived Query Methods1:14:19
  2. More Query Keywords1:15:43
  3. Sorting1:17:05

20. Paging, @Query with JPQL and Native Queries

  1. Paging1:18:18
  2. @Query with JPQL1:19:47
  3. Native Queries1:20:57

21. Counting and Exists, Transactions and Practice: Search Books

  1. Counting and Exists1:22:19
  2. Transactions1:23:38
  3. Practice: Search Books1:25:13

22. Relationships, @ManyToOne and @OneToMany

  1. Relationships1:26:41
  2. @ManyToOne1:28:03
  3. @OneToMany1:29:01

23. Lazy Loading, Cascade and Many to Many

  1. Lazy Loading1:30:26
  2. Cascade1:31:51
  3. Many to Many1:33:11

24. DTOs for Relationships, Avoiding Endless JSON and Practice: Authors and Books

  1. DTOs for Relationships1:34:23
  2. Avoiding Endless JSON1:35:28
  3. Practice: Authors and Books1:36:58

25. Why Validate, Bean Validation and @Valid

  1. Why Validate1:38:29
  2. Bean Validation1:39:43
  3. @Valid1:40:59

26. Validation Errors, Custom Exceptions and @ResponseStatus

  1. Validation Errors1:42:28
  2. Custom Exceptions1:43:51
  3. @ResponseStatus1:44:54

27. @RestControllerAdvice, ProblemDetail and Practice: Clean Errors

  1. @RestControllerAdvice1:46:02
  2. ProblemDetail1:47:11
  3. Practice: Clean Errors1:48:24

28. Controller, Service, Repository, Mapping Entities to DTOs and Update Requests

  1. Controller, Service, Repository1:49:53
  2. Mapping Entities to DTOs1:51:25
  3. Update Requests1:52:31

29. PATCH, Filtering with Query Parameters and Pagination in the API

  1. PATCH1:53:47
  2. Filtering with Query Parameters1:54:52
  3. Pagination in the API1:55:49

30. API Versioning, CORS and Practice: A Complete Books API

  1. API Versioning1:57:06
  2. CORS1:58:33
  3. Practice: A Complete Books API1:59:55

31. Spring Security Basics, Locked by Default and SecurityFilterChain

  1. Spring Security Basics2:01:30
  2. Locked by Default2:02:39
  3. SecurityFilterChain2:03:46

32. Users and Passwords, Password Encoding and Roles

  1. Users and Passwords2:04:59
  2. Password Encoding2:06:01
  3. Roles2:07:16

33. Protecting Endpoints by Role, Method Security and Practice: A Secured API

  1. Protecting Endpoints by Role2:08:25
  2. Method Security2:09:41
  3. Practice: A Secured API2:11:00

34. Why Test, JUnit Basics and Testing a Service

  1. Why Test2:12:27
  2. JUnit Basics2:13:55
  3. Testing a Service2:15:22

35. Mockito, @WebMvcTest and MockMvc

  1. Mockito2:16:40
  2. @WebMvcTest2:18:09
  3. MockMvc2:19:26

36. @DataJpaTest, @SpringBootTest and Practice: Test the API

  1. @DataJpaTest2:20:50
  2. @SpringBootTest2:21:58
  3. Practice: Test the API2:23:19

37. Actuator, Health and Info and Packaging a Jar

  1. Actuator2:24:34
  2. Health and Info2:26:22
  3. Packaging a Jar2:27:55

38. Project: The Plan, Entities, Repositories and Service

  1. Project: The Plan2:29:19
  2. Project: Entities2:30:37
  3. Project: Repositories and Service2:31:38

39. Project: The Controller, Validation and Errors and Security

  1. Project: The Controller2:33:11
  2. Project: Validation and Errors2:34:22
  3. Project: Security2:35:33

40. Project: Tests, Where to Go Next and Course Recap

  1. Project: Tests2:36:31
  2. Where to Go Next2:37:42
  3. Course Recap2:38:34