Spring Boot 4 REST APIs: Building Modern REST APIs

Develop Real-Time Spring Boot 4 RESTful Endpoints: CRUD, JWTs, OpenAPI, Swagger, Auth, H2 Embedded DB, MySQL

  • 0.0 (0 Reviews)
  • 0 Students
  • 176 Lessons
  • Chad Darby

Course Overview

UPDATED FOR SPRING BOOT 4 AND SPRING 7


Spring Boot 4 is the most popular framework for building enterprise Java applications. Spring Boot 4 includes REST  support to develop scalable backend API development. By developing RESTful endpoints, you can create applications with better code design, securely authenticated scalable solutions, that are all easier to maintain. This course shows you how to take full advantage of Spring Boot's REST support.

You will also use modern development tools such as IntelliJ (free version) and Maven. All of the projects are based on Maven, so you are free to use any IDE tool that you want.

---

In this course, you will get:

- All source code is available for download

- Responsive Instructors: All questions answered within 24 hours

- PDFs of all lectures are available for download

- Professional video and audio recordings (check the free previews)

- High quality closed-captions / subtitles available for English and 14 other languages (new!)

---


~ 1,000,000 (1 MILLION) happy students between the instructors of this course!


Students love this course! 5-star reviews

Chad Darby and Eric Roby are great at delivering the materials and giving good real-world examples of concepts. they make the course a very enjoyable class, This course is very thorough and detailed. Thank you - Ninos


Great course, the material is explained in such a clear way. I enjoy it a lot. Highly recommendable. - Ardak Sydyknazar


Chad Darby's courses are the best on Udemy. Thanks him I've got my first work and got promotion on the second one. Good job, my friend! (c) :) - Andrii Hryhoriev


this is my 4th Course with Mr. Darby, and his courses are so special. Organized, clear concepts, amazing material. and the most important his Knowledge of the Topic and he really deliver the information's for us. just amazing. - Ra'ed Abu Sa'da

---

In this course, you will learn how to:

REST API Fundamentals

  • Understand REST architecture and principles

  • Set up Spring Boot REST controllers

  • Build endpoints for CRUD operations

  • Use @RestController, @RequestMapping, @PathVariable, and @RequestBody

  • Differentiate between GET, POST, PUT, and DELETE methods

  • Handle path variables and query parameters effectively

  • Leverage @ResponseStatus to control HTTP responses


Connect to Databases with Spring Data JPA

  • Integrate with MySQL (and H2 for local dev)

  • Use Spring Data JPA repositories

  • Map entities with JPA annotations

  • Perform custom queries using JPQL and native SQL

  • Use projections and DTOs to control data exposure


CRUD Operations

  • Create REST endpoints for full CRUD functionality

  • Return JSON data using Jackson

  • Use @PostMapping, @PutMapping, @DeleteMapping, and @GetMapping effectively

  • Build reusable service-layer logic

  • Avoid code duplication with generic service/repository patterns

  • Handle entity not found scenarios gracefully

  • Respond with appropriate status codes for create/update/delete operations


REST Best Practices

  • Use proper HTTP status codes

  • Path & Query Data Validation

  • Object Data Validation

  • Apply request validation with @Valid and custom validators

  • Structure consistent response models

  • Implement global exception handling with @ControllerAdvice

  • Leverage @ResponseEntity for flexible responses

  • Avoid exposing internal domain objects directly in responses


Secure Your REST APIs

  • Add basic authentication with Spring Security

  • Secure endpoints by role or path

  • Implement JWT authentication (coming soon in course updates)

  • Customize login/logout endpoints

  • Configure stateless sessions using JWT

  • Restrict CORS to specific domains

  • BCrypt Hashing for database passwords


Compared to other Spring Boot REST courses

This course is up to date and covers recent versions of Spring Boot 4. We make use of modern development tools such as IntelliJ (free version) and Maven.

We are very responsive instructors and we are available to answer your questions and help you work through any problems.

Finally, all source code is provided with the course along with setup instructions.


Student Reviews Prove This Course's Worth

Those who have reviewed the course have pointed out that the instruction is clear and easy to follow, as well as thorough and highly informative. 

Many students had also taken other Spring Boot REST courses in the past, only to find that this Spring Boot REST course was their favorite. They enjoyed the structure of the content and the high quality audio/video.


Sample of Student Reviews - 5 stars!

Chad Darby and Eric Roby are great at delivering the materials and giving good real-world examples of concepts. they make the course a very enjoyable class, This course is very thorough and detailed. Thank you - Ninos


Great course, the material is explained in such a clear way. I enjoy it a lot. Highly recommendable. - Ardak Sydyknazar


Chad Darby's courses are the best on Udemy. Thanks him I've got my first work and got promotion on the second one. Good job, my friend! (c) :) - Andrii Hryhoriev


this is my 4th Course with Mr. Darby, and his courses are so special. Organized, clear concepts, amazing material. and the most important his Knowledge of the Topic and he really deliver the information's for us. just amazing. - Ra'ed Abu Sa'da



Quality Material

You will receive a quality course, with solid technical material and excellent audio and video production. I am a best-selling instructor on Udemy. Here's a list of my top courses.

  • Full Stack: React and Spring Boot

  • Full Stack: Angular and Spring Boot E-Commerce Website

  • Spring and Hibernate for Beginners

  • Hibernate: Advanced Development Techniques

  • Deploy Spring Boot 4 Apps Online to Amazon Cloud (AWS)

  • JSP and Servlets for Beginners

  • JavaServer Faces (JSF) for Beginners

  • FastAPI Beginners and Advanced

These courses have received rave 5 star reviews and over 1,000,000 students have taken the courses. Also, these courses are the most popular courses in their respective categories.

We also have active YouTube channels where we post regular videos. In the past year, we have created over 1200 video tutorials (public and private). Our YouTube channels have over 8 million views and 50k subscribers. So I understand what works and what doesn’t work for creating video tutorials.


No Risk – Udemy Refund 

Finally, there is no risk. You can preview 25% of the course for free. Once you purchase the course, if for some reason  you are not happy with the course, Udemy offers a 30-day refund (based on Udemy's Refund Policy).

So you have nothing to lose, sign up for this course and learn how to apply Spring Boot REST framework.


Target Audience

Java Developers with Spring Boot experience

See more

FAQ

FAQ area empty

Course curriculum

8 chương 176 bài học 14 giờ 11 phút 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 Spring Boot REST - Project 1
  • Spring Boot REST: Project 1 Overview Học thử 3:12
  • Spring Boot REST: Create Project 1 Overview 2:37
  • Spring Boot REST: Create Project 1 Học thử 4:05
  • Spring Boot REST: Create First REST Endpoint Overview Học thử 3:58
  • Spring Boot REST: Create First REST Endpoint 5:37
  • Spring Boot REST: Create Entities Overview 5:35
  • Spring Boot REST: Create Entities Overview Continued 5:33
  • Spring Boot REST: Create Entities 8:00
  • Spring Boot REST: Implement Swagger Overview 3:24
  • Spring Boot REST: Implement Swagger 6:55
  • Spring Boot REST: Path Variables Overview 6:54
  • Spring Boot REST: Path Variables 7:12
  • Spring Boot REST: Path Variables with Streams 2:37
  • Spring Boot REST: Query/Request Parameters Overview 3:54
  • Spring Boot REST: Query/Request Parameters 5:11
  • Spring Boot REST: Query/Request Parameters with Streams 2:18
  • Spring Boot REST: Path & Query Parameters Overview 2:36
  • Spring Boot REST: POST Request Overview 3:27
  • Spring Boot REST: POST Request 5:46
  • Spring Boot REST: POST Request with Streams 2:19
  • Spring Boot REST: PUT Request Overview 1:26
  • Spring Boot REST: PUT Request 5:08
  • Spring Boot REST: DELETE Request Overview 0:59
  • Spring Boot REST: DELETE Request 2:26
  • Spring Boot REST: Request Mapping Overview 1:29
  • Spring Boot REST: Request Mapping 5:57
Chương 3 Spring Boot REST - Project 2
  • Spring Boot REST: Project 2 Overview 1:57
  • Spring Boot REST: Project 2 Setup Overview 1:44
  • Spring Boot REST: Project 2 Setup 5:12
  • Spring Boot REST: Enhance REST Endpoints Overview 3:01
  • Spring Boot REST: Enhance REST Endpoints 5:38
  • Spring Boot REST: Implementation of BookRequest DTO Overview 6:23
  • Spring Boot REST: Implementation of BookRequest DTO 7:41
  • Spring Boot REST: Implement POST ConvertToBook 5:13
  • Spring Boot REST: PUT Enhancement Overview 1:23
  • Spring Boot REST: PUT Enhancement for BookRequest DTO 4:39
  • Spring Boot REST: Data Validation Overview 8:08
  • Spring Boot REST: Path Variable Data Validation 7:04
  • Spring Boot REST: BookRequest Data Validation 7:36
  • Spring Boot REST: Response Status Overview 2:12
  • Spring Boot REST: Response Status 5:42
  • Spring Boot REST: Swagger Tags & Operations Overview 3:15
  • Spring Boot REST: Swagger Tags & Operations 5:06
  • Spring Boot REST: Parameter Descriptions 3:46
  • Spring Boot REST: Exceptions Overview 7:51
  • Spring Boot REST: Book Error and Not Found Exception Handling 4:47
  • Spring Boot REST: Exception Handler Implementation 5:35
  • Spring Boot REST: Enhancements for Exception Handlers 7:20
  • Spring Boot REST: Global Exception Handling 5:11
  • Spring Boot REST: Controller Advice Overview 3:42
  • Spring Boot REST: Controller Advice 3:48
Chương 4 Spring Boot REST - Project 3 (Part 1)
  • Spring Boot REST: Project 3 Overview 1:49
  • Spring Boot REST: Real Time Project Overview 3:57
  • Spring Boot REST: Setup Project 3 Overview 2:25
  • Spring Boot REST: Setup Project 3 3:54
  • Spring Boot REST: Auto Reload 1:28
  • Spring Boot REST: Setup H2 Database Overview 6:03
  • Spring Boot REST: Setup H2 Database 6:54
  • Spring Boot REST: Create Entities 4:13
  • Spring Boot REST: DAO Interface & Implementation Overview 3:47
  • Spring Boot REST: DAO Interface & Implementation 5:22
  • Spring Boot REST: Setup Employee Controllers 3:26
  • Spring Boot REST: Setup Employee Service Overview 4:09
  • Spring Boot REST: Setup Employee Service 4:09
  • Spring Boot REST: Employee DAO Updates Overview 4:00
  • Spring Boot REST: Employee DAO Updates 4:47
  • Spring Boot REST: Service Layer Enhancement Overview 3:34
  • Spring Boot REST: Service Layer Enhancement 8:32
  • Spring Boot REST: Swagger Implementation & Data Validation Overview 2:29
  • Spring Boot REST: Swagger Implementation & Data Validation 4:16
  • Spring Boot REST: Enhance Controller Overview 1:26
  • Spring Boot REST: Enhance Controller 4:02
  • Spring Boot REST: POST Controller Overview 2:55
  • Spring Boot REST: PUT & DELETE Overview 2:38
  • Spring Boot REST: POST & PUT in Controller 5:45
  • Spring Boot REST: DELETE in Controller 2:04
Chương 5 Spring Boot REST - Project 3 (Part 2)
  • Spring Boot REST: Spring Data JPA Overview 8:54
  • Spring Boot REST: Switch to JPA Repository 6:23
  • Spring Boot REST: Using JPA Repository 2:21
  • Spring Boot REST: Spring Security Overview 8:09
  • Spring Boot REST: Setup Spring Security 5:29
  • Spring Boot REST: Setup Configuration Overview 5:22
  • Spring Boot REST: Setup Configuration 6:18
  • Spring Boot REST: Spring Security Request Mappers Overview 6:41
  • Spring Boot REST: Spring Security Request Mappers 10:24
  • Spring Boot REST: Spring Security and Swagger Overview 3:53
  • Spring Boot REST: Spring Security and Swagger 11:11
  • Spring Boot REST: Spring Security for H2 Overview 1:19
  • Spring Boot REST: Spring Security for H2 2:57
  • Spring Boot REST: Basic Authentication Overview 5:57
  • Spring Boot REST: Basic Authentication 6:01
  • Spring Boot REST: Spring Security BCrypt Overview 4:59
  • Spring Boot REST: Spring Security BCrypt Part 2 Overview 4:02
  • Spring Boot REST: Spring Security BCrypt 4:28
  • Spring Boot REST: Spring Customization of Tables Overview 2:54
  • Spring Boot REST: Setup Tables for Customization 2:18
  • Spring Boot REST: Spring Security Customize Tables 4:12
Chương 6 Spring Boot REST - Project 4
  • Spring Boot REST Project 4 Overview 6:19
  • Spring Boot REST: Create Project 4 Overview 3:10
  • Spring Boot REST: Create Project 4 3:34
  • Spring Boot REST P4: Create Entities Overview 7:56
  • Spring Boot REST P4: Create Todo Entity 8:09
  • Spring Boot REST P4: Create User Entity 9:32
  • Spring Boot REST P4: Create Authority Entity 3:42
  • Spring Boot REST P4: Collection Table for Authorities 3:24
  • Spring Boot REST P4: Configure Remaining Database Information 5:32
  • Spring Boot REST P4: Setup MySQL Database Overview 7:29
  • Spring Boot REST P4: Run Docker & Setup Resources 10:08
  • Spring Boot REST P4: Setup Database GUI 4:58
  • Spring Boot REST P4: Implement Swagger Overview 1:48
  • Spring Boot REST P4: Add Swagger 3:41
  • Spring Boot REST P4: JWT Overview 4:11
  • Spring Boot REST P4: Setup JWTs Overview 10:34
  • Spring Boot REST P4: Install JWTs & Application Properties 4:53
  • Spring Boot REST P4: Create JWT Interface & Service 5:06
  • Spring Boot REST P4: Generate Token Method 7:28
  • Spring Boot REST P4: Extract Claims from JWT 4:41
  • Spring Boot REST P4: JWT Validation 3:07
  • Spring Boot REST P4: JWT Auth Filter Overview 4:57
  • Spring Boot REST P4: JWT Authentication Filter Implementation 13:35
  • Spring Boot REST P4: Security Config Overview 4:58
  • Spring Boot REST P4: User Repository Implementation 1:47
  • Spring Boot REST P4: Security Configuration Implementation 13:27
  • Spring Boot REST P4: Register User Overview 4:51
  • Spring Boot REST P4: Register Request 4:23
  • Spring Boot REST P4: Authentication Service Register 10:09
  • Spring Boot REST P4: Authentication Controller Register 6:28
  • Spring Boot REST P4: Authenticate User Overview 4:11
  • Spring Boot REST P4: Authentication Request & Response 4:40
  • Spring Boot REST P4: Authentication Login Service 6:59
  • Spring Boot REST P4: Login Controller 6:01
  • Spring Boot REST P4: Get User & Swagger Overview 7:28
  • Spring Boot REST P4: Create UserService & UserController 9:39
  • Spring Boot REST P4: Implement Swagger Configuration for Bearer Token 5:53
  • Spring Boot REST P4: User Response 6:28
  • Spring Boot REST P4: Delete User Overview 3:22
  • Spring Boot REST P4: Delete User Service 6:45
  • Spring Boot REST P4: Custom Query to Count Admin 2:48
  • Spring Boot REST P4: Delete User Controller 4:23
  • Spring Boot REST P4: Exception Handling Overview 5:51
  • Spring Boot REST P4: Exception Handling Implementation 10:00
  • Spring Boot REST P4: Utilities Overview 1:38
  • Spring Boot REST P4: Find Authentication User 4:52
  • Spring Boot REST P4: Update Password Overview 4:09
  • Spring Boot REST P4: Update Password Request 2:59
  • Spring Boot REST P4: Update Password Service 8:14
  • Spring Boot REST P4: User Controller for Password Change 3:53
  • Spring Boot REST P4: Add Tag & Response for User Controller 3:08
  • Spring Boot REST P4: Todos Overview 4:17
  • Spring Boot REST P4: Todo Request & Response 5:41
  • Spring Boot REST P4: Create TodoService for Creating a Todo 6:58
  • Spring Boot REST P4: Todo Controller 6:30
  • Spring Boot REST P4: Fetch All Todos Overview 3:04
  • Spring Boot REST P4: Fetch All Todos 5:44
  • Spring Boot REST P4: Todo Toggle Overview 3:10
  • Spring Boot REST P4: Todo Toggle Implementation 5:19
  • Spring Boot REST P4: Todo Delete Overview 1:49
  • Spring Boot REST P4: Delete Todo Service 1:33
  • Spring Boot REST P4: Todo Controller Logic 6:40
  • Spring Boot REST P4: Admin Roles Overview 5:21
  • Spring Boot REST P4: Create Admin Service 6:29
  • Spring Boot REST P4: Promote to Admin 5:38
  • Spring Boot REST P4: Delete Non Admin 1:58
  • Spring Boot REST P4: Admin Controllers 6:58
  • Spring Boot REST P4: Demo! 4:09
Chương 7 Summary
  • Course Summary - Thank You and Please Leave a Rating for the Course 2:03
  • Resources 2:03
Chương 8 Bonus
  • Bonus Lecture

Requirment

  • Java: Java 17 or higher

  • Spring Boot: version 3.x or higher

  • Maven: version 3.9 or higher

Outcomes

  • Explore the architecture of the Spring Boot 4 REST framework and professional CRUD operations.

  • Develop REST endpoints with OpenAPI and supporting Swagger Implementation

  • Build reusable service-layer logic for scalable solutions

  • Avoid code duplication with service/repository patterns

  • Respond with appropriate status codes and error reporting

  • Implement JWT authentication and authorization using Spring Security

  • Protect endpoints with Authentication & Authorization

  • We are RESPONSIVE INSTRUCTORS ... post your questions and we will RESPOND in 24 hours.

  • Spring Boot developers with REST endpoints experience are in HIGH-DEMAND. Level up your career!

  • You can DOWNLOAD all source code and PDFs. Perfect for offline LEARNING and REVIEW.

Instructor

...
Chad Darby

0.0

  • ... 0 Student
  • ... 8 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all