🚀 Learn how to create a simple yet powerful REST API using Spring Boot! In this beginner-friendly tutorial, I'll guide you through setting up a RESTful API that allows you to create users and retrieve user data, all stored in an in-memory H2 database.
With the help of JPA, you'll see just how easy it is to manage user data in a lightweight, efficient manner. Perfect for software engineers getting started with a backend project to add to your portfolio!
What you’ll learn:
Set up Spring Boot and H2 DB
Create a User entity with JPA
Build endpoints for creating & retrieving users
Test the API with Postman or curl
📚Chapters
0:00 Intro
0:38 App Flow Diagram
1:47 Spring Initalizr
3:21 Writing Code
3:45 Controller
5:11 Entity
8:11 Service class
10:27 Repository
13:00 H2 Config
13:48 App Run Config
14:43 H2 UI
15:39 Postman testing
16:15 Error fix
16:23 Testing
17:53 H2 DB
18:23 Conclusions
▶️ Useful Playlists
• Blind 75
• Interview Fundamentals
• Leetcode
• Leetcode - Medium
🪢 Socials
Instagram: / leetjourney
Twitter / X: / leetjourney
TikTok: / leetjourney
👷 Ways to support my work
--
✨ Support my work as a Patreon: / leetjourney
☕️ Get me a coffee: https://www.buymeacoffee.com/leetjourney