LearningFromExperience
LearningFromExperience
  • 155
  • 598 618
Mastering Spring Boot CRUD Operations with H2 in IntelliJ IDEA!
In this tutorial, learn how to build a CRUD-based REST API using Spring Boot and IntelliJ IDEA. We'll walk you through the entire process, including:
✅ Setting up the Spring Boot project with Maven
✅ Writing the Controller, Service, and Repository layers
✅ Configuring H2 as the in-memory database
✅ Testing all CRUD endpoints (GET, POST, PUT, DELETE) with Postman
By the end of this video, you'll have a fully functional REST API that you can use as a foundation for your Spring Boot applications.
Key Postman Requests:
GET All Products:
GET localhost:8080/api/products
GET Product by ID:
GET localhost:8080/api/products/{id}
Create a Product:
POST localhost:8080/api/products
Request Body: { "name": "Product Name", "price": 100.0, "description": "Product Description" }
Update a Product:
PUT localhost:8080/api/products/{id}
Request Body: { "name": "Updated Product Name", "price": 120.0, "description": "Updated Product Description" }
Delete a Product:
DELETE localhost:8080/api/products/{id}
GitHub Repository:
Access the complete source code here: github.com/j2eeexpert2015/spring-crud-rest.git
มุมมอง: 57

วีดีโอ

Spring Boot CRUD REST API using Spring Data JPA | Postman | H2
มุมมอง 9421 ชั่วโมงที่ผ่านมา
Spring Boot CRUD REST API in Eclipse | Build and Test with Postman Learn how to build a CRUD REST API with Spring Boot and Eclipse in this tutorial. Follow along to create, read, update, and delete resources using this powerful combination of tools. A simple and efficient REST API is built using Spring Boot and JPA. This video will demonstrate how to set up a project, define entities and reposi...
Maven Dependencies: The Secret Sauce of Spring Boot
มุมมอง 55วันที่ผ่านมา
"Spring Boot Maven for Beginners in IntelliJ IDEA | Deep Dive into Dependency Management with an Existing Project" Explore how to effectively manage dependencies and understand key Maven concepts using an existing Spring Boot project in IntelliJ IDEA. Instead of starting from scratch, we'll open an existing project to focus on the intricacies of the pom.xml configuration-unpacking the significa...
Maven + Spring Boot + VS Code: Your Ultimate Setup Guide
มุมมอง 12114 วันที่ผ่านมา
Ready to streamline your Spring Boot development with Maven inside Visual Studio Code? In this step-by-step tutorial, learn how to set up a brand-new Spring Boot project using the Spring Initializr extension, configure your pom.xml file, and understand how the parent starter and Spring Boot starters make dependency management easier. You'll also explore what a Bill of Materials (BOM) is and how...
Spring Boot Maven : The Beginner's Guide You Actually Need
มุมมอง 24014 วันที่ผ่านมา
In this hands-on tutorial, learn how to create and manage a Spring Boot project with Maven directly inside Eclipse using the Spring Tool Suite plugin. Starting with a fresh project via the Spring Initializr, we'll break down the key components of the pom.xml, explore the role of the parent starter, and clarify how Spring Boot starters simplify your dependency handling. You'll also understand th...
Spring Boot 3 REST API Tutorial for Beginners with VS Code and Maven
มุมมอง 7114 วันที่ผ่านมา
Welcome to this beginner-friendly tutorial on Building a REST API with Spring Boot 3 using VSCode and Maven. In this video, we will walk you through the process of setting up a simple REST API with two basic endpoints-GET and POST-using VSCode and the REST Client Extension. In this video, we will cover: Setting up the Spring Boot Project: Creating a new Spring Boot project using Spring Initiali...
Building REST API with Spring Boot 3 for Beginners using Eclipse & Maven
มุมมอง 5114 วันที่ผ่านมา
Welcome to this beginner-friendly tutorial on Building a REST API with Spring Boot 3 using Eclipse and Maven. In this video, we will guide you step-by-step through the process of creating a simple REST API with two basic endpoints-GET and POST. In this video, we will cover: Setting up the Spring Boot Project: Using the Eclipse STS plugin to create a Spring Boot project from Spring Initializr. C...
VS Code for Java Beginners: Package & Class Creation | How to Create Package and Class in VS Code
มุมมอง 9121 วันที่ผ่านมา
Getting started with Java in Visual Studio Code? In this video, I guide you through the steps to create a new Java project and show you how to leverage the Java Projects view for streamlined development. Learn how to create Java packages, classes, and other resources with ease, avoiding the hassle of navigating through the Explorer section. Perfect for beginners looking to boost productivity in...
VS Code: How to Fix Your Maven Dependency Issues (with a Smile)
มุมมอง 7821 วันที่ผ่านมา
Resolving Maven Dependency Conflicts in VS Code: Step-by-Step Guide In this video, you'll learn how to identify and resolve Maven dependency conflicts efficiently using Visual Studio Code. We create a Maven project and a pom.xml file with intentional dependency conflicts and demonstrate how to: ✅ Detect the root cause of dependency conflicts using VS Code's intuitive features ✅ Analyze the depe...
Maven Project Setup in VS Code: The Ultimate Guide
มุมมอง 10321 วันที่ผ่านมา
How to Create a Maven Project in VS Code: Step-by-Step Tutorial In this video, you'll learn how to create a Maven-based Java project from scratch using Visual Studio Code. This beginner-friendly tutorial covers: ✅ Installing Apache Maven on your system ✅ Setting up the MAVEN_HOME environment variable ✅ Creating a Maven project from scratch ✅ Executing Maven lifecycle goals (e.g., clean, compile...
How to Switch Between Multiple JDKs in VS Code: Workspace, User Settings, and JDK Switching
มุมมอง 3821 วันที่ผ่านมา
Master Java configurations in Visual Studio Code with this in-depth guide! In this video, we’ll cover: How to refine Java project settings, including managing compiler levels, runtime JDKs, and build configurations. Switching between multiple JDK versions effortlessly within Visual Studio Code. The key differences between workspace settings and user settings, and how to configure each for tailo...
Java in VS Code: The Ultimate Setup Guide
มุมมอง 8021 วันที่ผ่านมา
In this video, we'll guide you through setting up Java in Visual Studio Code. Learn how to: Install Visual Studio Code Add the Java Extension Pack Create a Java project Adjust your Java project settings for a seamless development experience We'll also cover: How to change the compiler level and runtime JDK from the Java project settings The impact of setting or not setting JAVA_HOME on your Jav...
How To Connect to MySQL in Visual Studio Code and Run SQL Queries | MySQL in VSCode (2024)
มุมมอง 14321 วันที่ผ่านมา
Learn how to connect to a MySQL database in Visual Studio Code and run SQL queries effortlessly! In this step-by-step tutorial, I demonstrate how to install and use the SQLTools extension in VS Code to manage and query your MySQL databases. 📌 What You'll Learn: Installing SQLTools Extension in VS Code. Setting up a MySQL connection. Running SQL queries directly from VS Code. Tips to improve you...
Java Meets MySQL: The Ultimate JDBC Guide with Intellij
มุมมอง 29821 วันที่ผ่านมา
Learn how to connect a MySQL database to a Java application using IntelliJ IDEA in this step-by-step tutorial! Whether you are a beginner or an experienced developer, this guide simplifies the process of setting up a MySQL JDBC connection in IntelliJ IDEA. What You'll Learn: Setting Up IntelliJ IDEA for Database Connectivity: Adding a MySQL JDBC driver to your project. Configuring the project d...
How to Connect MySQL Database in IntelliJ IDEA (Step-by-Step)
มุมมอง 19521 วันที่ผ่านมา
Learn How to Connect MySQL Database in IntelliJ IDEA Community Edition | Using Database Navigator Plugin (2024) This step-by-step tutorial shows you how to seamlessly connect and manage MySQL databases in the IntelliJ IDEA Community Edition using the free Database Navigator plugin. Boost your productivity by managing databases, browsing schemas, and running SQL queries directly from your IDE wi...
Step-by-Step Guide to MySQL JDBC Connection in Eclipse
มุมมอง 16221 วันที่ผ่านมา
Step-by-Step Guide to MySQL JDBC Connection in Eclipse
Connecting MySQL Database in Eclipse - A Step-by-Step Guide
มุมมอง 11021 วันที่ผ่านมา
Connecting MySQL Database in Eclipse - A Step-by-Step Guide
How to Change JDK Version in Eclipse (2024) | Change Java Version in Eclipse
มุมมอง 33621 วันที่ผ่านมา
How to Change JDK Version in Eclipse (2024) | Change Java Version in Eclipse
How to install Eclipse IDE 2024-09 on Windows 11
มุมมอง 25528 วันที่ผ่านมา
How to install Eclipse IDE 2024-09 on Windows 11
Spring Boot Development: The Ultimate Eclipse Guide
มุมมอง 396หลายเดือนก่อน
Spring Boot Development: The Ultimate Eclipse Guide
PostgreSQL on Windows 11: The Ultimate Guide
มุมมอง 284หลายเดือนก่อน
PostgreSQL on Windows 11: The Ultimate Guide
How to Install MySQL and MySQL Workbench on Windows | How to install MySQL on Windows 11 [2024]
มุมมอง 379หลายเดือนก่อน
How to Install MySQL and MySQL Workbench on Windows | How to install MySQL on Windows 11 [2024]
How to Install Google Chrome on Windows 11 (Step-by-Step Guide)
มุมมอง 73หลายเดือนก่อน
How to Install Google Chrome on Windows 11 (Step-by-Step Guide)
How to Install Java JDK 17 on Windows 11 | JAVA_HOME, JDK Installation
มุมมอง 244หลายเดือนก่อน
How to Install Java JDK 17 on Windows 11 | JAVA_HOME, JDK Installation
How to push Eclipse Project to GitHub | How To Add Eclipse Project To GitHub
มุมมอง 436หลายเดือนก่อน
How to push Eclipse Project to GitHub | How To Add Eclipse Project To GitHub
Resolve Merge Conflicts Easily with IntelliJ IDEA | Step-by-Step Guide to Git Conflict Resolution
มุมมอง 168หลายเดือนก่อน
Resolve Merge Conflicts Easily with IntelliJ IDEA | Step-by-Step Guide to Git Conflict Resolution
How to use Tomcat in IntelliJ | How to Run Web Application in Tomcat using Intellij CE
มุมมอง 339หลายเดือนก่อน
How to use Tomcat in IntelliJ | How to Run Web Application in Tomcat using Intellij CE
How to Import a Maven Project in Intellij IDEA | Importing an existing Maven Project into Intellij
มุมมอง 595หลายเดือนก่อน
How to Import a Maven Project in Intellij IDEA | Importing an existing Maven Project into Intellij
How to Set Up MySQL Database with Docker | Run MySQL in Docker container (using Docker Desktop)
มุมมอง 4152 หลายเดือนก่อน
How to Set Up MySQL Database with Docker | Run MySQL in Docker container (using Docker Desktop)
Install IntelliJ IDEA from Zip (No Installer!) - Easy Step-by-Step Guide
มุมมอง 3862 หลายเดือนก่อน
Install IntelliJ IDEA from Zip (No Installer!) - Easy Step-by-Step Guide

ความคิดเห็น

  • @SAHILKHAN-i8y8c
    @SAHILKHAN-i8y8c 7 ชั่วโมงที่ผ่านมา

    Nice explanation, Thanks a lot sir!!

  • @ashishdevnani
    @ashishdevnani วันที่ผ่านมา

    well explained. just need to reduce playback speed to understand clearly

  • @nozedic
    @nozedic 4 วันที่ผ่านมา

    Java 8 is rather old for 2024.

  • @nozedic
    @nozedic 4 วันที่ผ่านมา

    Perhaps you don’t need the double backslash as the double is actually shown on the terminal.

  • @Luca-po8ve
    @Luca-po8ve 4 วันที่ผ่านมา

    Had some trouble with setting up the nested virtualization. I dont know if I used the wrong Image or if it was the security policy or whatever. Either way your video helped a lot thanks 👍

  • @Nand-c4p
    @Nand-c4p 5 วันที่ผ่านมา

    hey, while creating PAT which options should i select?

    • @learningfromexperience
      @learningfromexperience 3 วันที่ผ่านมา

      I personally use a Classic Token with the repo scope for my personal GitHub account. It works well for committing code and managing my repositories. *Classic Tokens vs. Fine-Grained Tokens:* *Classic Tokens:* Broad access to all repositories. Permissions are defined using scopes (e.g., repo, gist). Best for tasks requiring global access to multiple repositories. *Fine-Grained Tokens:* Access is limited to specific repositories. Permissions can be set for specific actions (e.g., read, write, admin). Best for secure, minimal access to certain repositories. *Quick Comparison:* *Access Scope:* Classic Tokens work for all repositories, Fine-Grained Tokens are repository-specific. *Permission Granularity:* Classic Tokens offer broad permissions; Fine-Grained Tokens allow detailed, per-repo access. *Security:* Classic Tokens are less secure (broader permissions); Fine-Grained Tokens follow the principle of least privilege. *Best Use Case:* Classic Tokens for global tasks, Fine-Grained Tokens for specific repository needs.

  • @mikaleo8776
    @mikaleo8776 5 วันที่ผ่านมา

    Thx bro, this helped alot

  • @firozbasser3743
    @firozbasser3743 6 วันที่ผ่านมา

    There's one more setting you might have to make - Click on the the View Menu (3 dots button), "Projects Presentation"/ "Package Presentation", hierachiacal

  • @firozbasser3743
    @firozbasser3743 6 วันที่ผ่านมา

    Thank you so much !! Package view is a real pain icompared to Navigator

  • @MohamedYosry-s7r
    @MohamedYosry-s7r 6 วันที่ผ่านมา

    THANK YOU

  • @kakhabervk9405
    @kakhabervk9405 6 วันที่ผ่านมา

    Very good and simple explained lessons. Thank You!

  • @adegunloyerebecca2671
    @adegunloyerebecca2671 6 วันที่ผ่านมา

    Hello Coach, Looking to boost your Udemy course visibility and paid enrollments? I specialize in SEO optimization and strategic promotion to attract paying students. 🚀 Here’s how I can help: ✅ Optimize titles & descriptions for better rankings. ✅ Targeted marketing to reach ready-to-pay learners. ✅ SEO-friendly strategies for higher visibility. ✅ Drive conversions with compelling content. See results in just 5 days! Ready to grow your course? Best regards, Messi

  • @5s4l1p1fcw
    @5s4l1p1fcw 8 วันที่ผ่านมา

    Thanks for taking the time to create these videos. Long time ago, I used to be a developer (not Spring) and I enjoyed this playlist. I have a question. You seem to be adding a bunch of dependencies. So, wouldn't your JAR/WAR file size be huge? And if you have to create multiple Spring projects, wouldn't the maintenance/upgrade part be a headache to upgrade them individually? Is there a way to use the Spring dependencies as a shared library above several Spring projects, so the JAR/WAR file size will be small and future upgrades can only be done in a single spot?

  • @phucnguyen1636
    @phucnguyen1636 9 วันที่ผ่านมา

    Can you create video to guide debugging FastAPI insider docker container using Pycharm, please?

  • @Mr_TravelEatWorship_Official
    @Mr_TravelEatWorship_Official 10 วันที่ผ่านมา

    Awesome 👍

  • @karthican2010
    @karthican2010 12 วันที่ผ่านมา

    You took only the best case scenario which is of very less help. Your example should contain worst case scenario and steps to fix it.

  • @Dheeraj-m6d
    @Dheeraj-m6d 12 วันที่ผ่านมา

    thanks for guidance

  • @vetrivasanth2044
    @vetrivasanth2044 12 วันที่ผ่านมา

    Thanks for the tutorial! I installed MySQL successfully, but the Workbench looks blurry with low-quality text. Any tips to fix this?"

  • @kathiravanr355
    @kathiravanr355 13 วันที่ผ่านมา

  • @IvoryMadness.
    @IvoryMadness. 13 วันที่ผ่านมา

    Thanks man! Really good vid!

  • @eventhor1z0n
    @eventhor1z0n 16 วันที่ผ่านมา

    Thank you really helpful!

  • @badbollstrollet
    @badbollstrollet 19 วันที่ผ่านมา

    i fakking love yu ma bradda, much love from sverige!!!

    • @learningfromexperience
      @learningfromexperience 19 วันที่ผ่านมา

      Glad you found the video helpful! Thanks for the support from Sweden! 🙂

    • @tags7647
      @tags7647 14 วันที่ผ่านมา

      keys

  • @shekharsinha2023
    @shekharsinha2023 20 วันที่ผ่านมา

    This is really useful

  • @kalvinvirk
    @kalvinvirk 20 วันที่ผ่านมา

    Great. this helps me a lot :)

  • @abhilashadeshpande7996
    @abhilashadeshpande7996 21 วันที่ผ่านมา

    Very nice explanation 🎉

  • @saviourmelody
    @saviourmelody 22 วันที่ผ่านมา

    Great

  • @norbertspecht4590
    @norbertspecht4590 22 วันที่ผ่านมา

    excellent tutorial

  • @dhananjaykirat
    @dhananjaykirat 24 วันที่ผ่านมา

    Great🎉

  • @eswarb6136
    @eswarb6136 24 วันที่ผ่านมา

    Sir can i know to get that JDK and Apache-maven and JRE so that i can download. And ,I have an error that [ An internal error occurred during "Creating Project "simplejdbcProjects"" Can you help me in that kindly

    • @learningfromexperience
      @learningfromexperience 23 วันที่ผ่านมา

      I recommend following the steps in my video on "Java Development Setup: Install Java, Maven, and Eclipse Step-by-Step" (th-cam.com/video/8sruToHHdko/w-d-xo.html) to ensure that everything is correctly set up, including the JDK, Maven, and Eclipse. Once you've completed the setup, please try creating the project again. Sometimes, errors like "[An internal error occurred during 'Creating Project]" happen due to incorrect configuration or missing components.

  • @guilhermerocha2832
    @guilhermerocha2832 26 วันที่ผ่านมา

    Thank you. Your work editing this video is very good. Congratulations!

  • @greenblue980
    @greenblue980 27 วันที่ผ่านมา

    thankssss yoouuu

  • @lucas.weber.31
    @lucas.weber.31 หลายเดือนก่อน

    Made my day bro!

  • @lucutes2936
    @lucutes2936 หลายเดือนก่อน

    anyone trying to play old Minecraft versions lol

    • @Jesus_027
      @Jesus_027 26 วันที่ผ่านมา

      Im trying

  • @aydenbaas1609
    @aydenbaas1609 หลายเดือนก่อน

    How did you select both clean and package? When I click either it deselects the other

    • @learningfromexperience
      @learningfromexperience หลายเดือนก่อน

      Press Ctrl first and then select clean and package

  • @swapandutta8145
    @swapandutta8145 หลายเดือนก่อน

    Very useful

  • @Trupti06
    @Trupti06 หลายเดือนก่อน

    I'm not getting that green color button along with my code. how to do that? i'm just doing code changes in existing code and need to test it

    • @learningfromexperience
      @learningfromexperience หลายเดือนก่อน

      Thanks for your question! Since I haven’t seen your exact code or project setup, this is an educated guess based on common issues. Here are a few things to check: *1.JUnit Library* Make sure the JUnit library is added to your project's pom.xml. It's essential for writing and running tests. Refresh your project after adding JUnit so IntelliJ detects it. *2.Location of Test Files* Your test files should be in a special test folder, like src/test/java. Right-click the test folder in IntelliJ and mark it as "Test Sources Root" if it isn't already. *3.Test Methods* Ensure your test methods have the @Test annotation. Without it, IntelliJ won’t recognize the methods as tests. *4.Fix Errors* Make sure your code has no compilation errors. Errors in your test or main code can prevent IntelliJ from showing the green run button. *5.IntelliJ Configuration* Go to File > Project Structure > Modules and ensure JUnit is listed as a dependency. If IntelliJ is acting up, try clearing the cache: File > Invalidate Caches / Restart > Invalidate and Restart. *6.Alternate way* *Auto-generate Tests:* IntelliJ can create basic tests for you. Right-click the class you want to test, then go to Generate > Test. *Run Without Green Button:* You can right-click the test class or method in the editor and select Run.

  • @preetishamballi6988
    @preetishamballi6988 หลายเดือนก่อน

    Hands down one of the best explanations of fundamental concepts. You earned a subscriber today.

  • @NKozchenko
    @NKozchenko หลายเดือนก่อน

    Thank you so much mate!

  • @bhumeshhgx5386
    @bhumeshhgx5386 หลายเดือนก่อน

    What if we don't have oracle account

    • @learningfromexperience
      @learningfromexperience หลายเดือนก่อน

      Oracle requires users to sign in with an account to download JDK versions like Java 8 due to licensing policies. However, starting with JDK 21, Oracle has introduced the Oracle No-Fee Terms and Conditions License, which permits free use for all users without requiring an Oracle account for download. ORACLE If you prefer to use JDK 8 and don't have an Oracle account, you can create one for free on Oracle's website. Alternatively, you might consider using newer JDK versions like JDK 21, which do not require an account for download and offer the latest features and security updates.

  • @ThomasLange-u8u
    @ThomasLange-u8u หลายเดือนก่อน

    Thank you very much!

  • @nishanthreddy4764
    @nishanthreddy4764 หลายเดือนก่อน

    Very good explanation❤🎉

  • @liqs_xd
    @liqs_xd หลายเดือนก่อน

    Thanks, great and clear tutorial. Much appreciated!

  • @darkspel
    @darkspel หลายเดือนก่อน

    Just to let you know that your explanations are of very high quality. I've watched several Maven related videos, some from channels with many subscribers, and yours are the best so far

  • @bhamra123singh2
    @bhamra123singh2 หลายเดือนก่อน

    I wasted my whole day in resolving that error and you solved it in a few seconds...thank u sir ji

  • @Durianpie_304lolz
    @Durianpie_304lolz หลายเดือนก่อน

    2hrs to download ToT

  • @aryaamiri710
    @aryaamiri710 หลายเดือนก่อน

    Very useful! Thanks for your amazing video!

  • @pranavburadkar
    @pranavburadkar หลายเดือนก่อน

    Very informative, as per the docs its mention one need to use docker business subscription to run on VDI, could you please confirm can we use docker personal edition ?

    • @learningfromexperience
      @learningfromexperience หลายเดือนก่อน

      Hi, thanks for watching the video! Yes you can ! The video lesson I created covers Docker Desktop, which is a tool that allows Docker to run on systems, including VDI environments, by enabling nested virtualization. Docker Desktop is free for small businesses, personal use, educational purposes, and non-commercial open-source projects. This means you can use it on a local system or a VDI environment for personal or non-commercial purposes without a subscription. However, if Docker Desktop is used commercially in a company with more than 250 employees or over $10 million in annual revenue, a paid subscription (Pro, Team, or Business) is required. Hope this clarifies!

  • @bricardonelson
    @bricardonelson หลายเดือนก่อน

    Thank you for the help

  • @FingertipsCoding
    @FingertipsCoding หลายเดือนก่อน

    in my eclipse, navigator is not showing

    • @learningfromexperience
      @learningfromexperience หลายเดือนก่อน

      In recent versions of Eclipse, unfortunately the Navigator view has been removed, which can be a bit confusing. I’ve created a workaround video that shows an alternative approach to using the Project Explorer view instead. You can check it out here: th-cam.com/video/7gn2ER8gLVo/w-d-xo.html I hope this helps!

  • @DiEgOo440
    @DiEgOo440 หลายเดือนก่อน

    Thanks bro, shout out from brazil.