Spring Boot CRUD Operations with MySQL using IntelliJ IDEA | CRUD Operation using REST API in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • In this video, we will build Spring Boot CRUD REST API Project using IntelliJ IDEA as our IDE. We will use the Postman client to test the REST APIs.
    We will use Spring Data JPA to develop a repository layer and MySQL database at the backend.
    Get source code and read the blog post at www.javaguides.net/2021/10/sp...
    GitHub link: github.com/RameshMF/React-Hoo...
    #springboot #IntelliJIDEA #postman
    My Top 10+Udemy Courses (Bestseller Courses):
    1. Spring 6 & Spring Boot 3 for Beginners (Includes 5 Projects):
    www.udemy.com/course/learn-sp...
    2. Building Real-Time REST APIs with Spring Boot - Blog App:
    www.udemy.com/course/building...
    3. Building Microservices with Spring Boot and Spring Cloud:
    www.udemy.com/course/building...
    4. Testing Spring Boot App with JUnit, Mockito & Testcontainers:
    www.udemy.com/course/testing-...
    5. Spring Boot 3 Thymeleaf REAL-TIME Web Application - Blog App:
    www.udemy.com/course/spring-b...
    6. Master Spring Data JPA with Hibernate:
    www.udemy.com/course/master-s...
    7. Spring Boot + Apache Kafka Course:
    www.udemy.com/course/spring-b...
    8. Spring Boot 3 + RabbitMQ Course:
    www.udemy.com/course/spring-b...
    9. Learn Thymeleaf with Spring Boot 3:
    www.udemy.com/course/learn-th...
    Check all my Udemy courses and discount coupons:
    www.javaguides.net/p/my-udemy...
    Visit My Top Java Guides Blog: www.javaguides.net/

ความคิดเห็น • 98

  • @JavaGuides
    @JavaGuides  2 ปีที่แล้ว +13

    Guys, Intellij idea is great IDE so go ahead and use free community addition for building spring boot projects. If you are new Intellij idea then check out intellij idea playlist on this channel.

    • @funcoding1797
      @funcoding1797 2 ปีที่แล้ว

      IntellijIDEA Ultimate Edition is much more attractive and better, especially in the field of completing the codes .. with a lot of plugins e.g Codota as well SST or eclipse and is free for one year...😍 Tnx a lot bro... you're the best...

    • @jagadeesh8751
      @jagadeesh8751 2 ปีที่แล้ว +1

      bro, In my code , compiler complains ResourceNotFoundException is not handled. you didnot used "throws" keyword in getById method. how it is working for you bro ??

  • @nml4546
    @nml4546 2 ปีที่แล้ว +3

    Very good was I got past the database problem. For some reason, building the project from the downloaded Springboot zip file, I could not get past a database problem. I spent a couple of days researching and trying things to no avail. I finally decided tp build the project in the traditional manner, i,e, from scratch (but including SpringInitializer) and the needed dependencies. Then I just followed the view and everything worked as expected.

  • @paulovinicius9940
    @paulovinicius9940 2 ปีที่แล้ว +1

    Very good as always!

  • @Lboards130
    @Lboards130 ปีที่แล้ว +1

    Thanks for the clip, it was very helpful.

  • @dadasajad8741
    @dadasajad8741 ปีที่แล้ว

    amazing work brother. thank you very much!

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

    Thanks so much, I am new to java spring boot, i found it useful

  • @BKYADAV-zm7yv
    @BKYADAV-zm7yv 2 ปีที่แล้ว

    Huge respect from my side sir ❤️

  • @feminaazmi3753
    @feminaazmi3753 2 ปีที่แล้ว

    Really helpful. Thank You :)

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

    Thank you.Helped me a lot

  • @jagadeesh8751
    @jagadeesh8751 2 ปีที่แล้ว +1

    very clear. thanks broooooooo

  • @gariktadevosyan764
    @gariktadevosyan764 ปีที่แล้ว

    Thank you bro, very helpful.

  • @karunakarverma
    @karunakarverma 2 ปีที่แล้ว +1

    You are awesome 😎 you created lifetime reference.

  • @tanmay.k8525
    @tanmay.k8525 ปีที่แล้ว

    Wow, thanks dude.

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

    Very useful video thanks a lot🙏

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

    than you master .well explained tutorial your are a boss

  • @fsoldierdeth
    @fsoldierdeth ปีที่แล้ว

    love u man, thank u for that it really helped me a lot believe me

  • @dineshsv4186
    @dineshsv4186 2 ปีที่แล้ว

    Thank you its working

  • @sachkosachbolnagalathhaiky9938
    @sachkosachbolnagalathhaiky9938 ปีที่แล้ว

    thank you brother amazing

  • @janithsahasra3971
    @janithsahasra3971 ปีที่แล้ว

    thanks a log it's really helpfull

  • @thaminduKavinda
    @thaminduKavinda ปีที่แล้ว

    Thanks for the video

  • @dgonx017_
    @dgonx017_ ปีที่แล้ว +1

    Best tutorial, new sub

  • @makarikevin
    @makarikevin ปีที่แล้ว

    Great tutorial

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

    Very crisp and to the point tutorial. Great job brother, this was helpful 👍

    • @pkmkb-69
      @pkmkb-69 2 หลายเดือนก่อน

      How to update this in XAMPP any idea? I mean how to update tables in XAMPP after fetching APIs

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

    very good video!

  • @karthikravikumar-cq6df
    @karthikravikumar-cq6df ปีที่แล้ว

    the best of all

  • @samuelquentacarvajal9910
    @samuelquentacarvajal9910 2 ปีที่แล้ว

    very good :)
    "saludos desde bolivia "

  • @user-tm2kc3kp5l
    @user-tm2kc3kp5l 5 หลายเดือนก่อน

    Thankyou bro❤

  • @abinayaelangovan8585
    @abinayaelangovan8585 2 ปีที่แล้ว +1

    ResourceNotFoundException is not working.. even in the demo shown in video, the customised error message is not getting printed

  • @dilaragoral106
    @dilaragoral106 2 ปีที่แล้ว

    best!!

  • @user-zj3mi9ps9g
    @user-zj3mi9ps9g 6 หลายเดือนก่อน

    very good

  • @omkarkumbhar2001
    @omkarkumbhar2001 ปีที่แล้ว

    Thank You

  • @karthikk5278
    @karthikk5278 2 ปีที่แล้ว

    Thank you

  • @vinayakhorambali5463
    @vinayakhorambali5463 2 ปีที่แล้ว

    hello i need a code for postmaping where if i have to save a data in my data base and if any of the field say "xyz" already exist in it then it should return me "field "xyz" already exists"... please help

  • @cdlijia
    @cdlijia ปีที่แล้ว

    学习了。

  • @remiimartinnn
    @remiimartinnn ปีที่แล้ว

    Thanks

  • @little-by-little-one-trave1770
    @little-by-little-one-trave1770 ปีที่แล้ว

    Good video thanks. According to mysql convention table name should be singular.

  • @yawamoako7811
    @yawamoako7811 2 ปีที่แล้ว

    Great

  • @rahuldubey1724
    @rahuldubey1724 2 ปีที่แล้ว

    24:58 bro mera sara values that is first name, last name and email id sb null show kr rha hai..please help

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

    33:16 --> at line number 33 when I used Long instead of long , it is giving 404 error . Can anyone explain why ?

  • @mariocs23
    @mariocs23 2 ปีที่แล้ว

    King

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

    Thank you very much

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

    While inserting data inro table employee 'Column name set 'is not listing the column names not listing in suggestions😢

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

    Can anyone help? Table is not created in my ems database

  • @fookoboy9623
    @fookoboy9623 ปีที่แล้ว

    if its showing web service is not started 8080 is busy then in application change the port number
    server.port=9090

  • @arunpitchaimani7713
    @arunpitchaimani7713 2 ปีที่แล้ว

    Please create spring boot and graphql playlist videos

  • @josephmctigue4494
    @josephmctigue4494 ปีที่แล้ว

    where is link to your finished code?

  • @subamsarkar_
    @subamsarkar_ ปีที่แล้ว +2

    Hi @Java Guides. I am not able to create the table. I did same coding as shown. And I am not getting any error in the build console. But the table is not getting created. I also changed the mysql dialect to my local MySQL version.

    • @little-by-little-one-trave1770
      @little-by-little-one-trave1770 ปีที่แล้ว

      Hi any solution I am also facing the same issue. I am using mysql 8.

    • @little-by-little-one-trave1770
      @little-by-little-one-trave1770 ปีที่แล้ว +2

      I used this it worked
      spring.jpa.hibernate.ddl-auto=update
      spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/ems
      spring.datasource.username=root
      spring.datasource.password=password
      spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
      spring.jpa.show-sql: true

    • @malfunkshungo
      @malfunkshungo ปีที่แล้ว

      @@little-by-little-one-trave1770 Thanks for the update. Mine also worked with this.

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

      ​@@malfunkshungo mine is not working. Please help

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

      Done . thanks a lot

  • @sahilsharma8691
    @sahilsharma8691 2 ปีที่แล้ว

    I am not getting the .set in list in employee.setFirstName();
    What can I do?

    • @N7000nn
      @N7000nn 2 ปีที่แล้ว

      You need to add lombock configuration in your Employee class. Above the class type @Setter and that works like setMethod of any field you have. The same goes for @Getter, @ToString etc..

  • @sajithsukumaran99
    @sajithsukumaran99 2 ปีที่แล้ว +1

    The first two IDs are always repeating...do u know what might be the problem..? Pls suggest

    • @paulovinicius9940
      @paulovinicius9940 2 ปีที่แล้ว +1

      You copied and forgot to change the values in the commandLine method.

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

      @@paulovinicius9940 CORRECT.

  • @thabtiguenidi2960
    @thabtiguenidi2960 8 หลายเดือนก่อน +1

    👍

  • @user-xh2yr2do9j
    @user-xh2yr2do9j 7 หลายเดือนก่อน +1

    Jii this is amazing learning video.. I expect you to do project in intellij idea and postman and the outputs in excel..Hope you see back in the next video with what I expect before 😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊

  • @user-zj3mi9ps9g
    @user-zj3mi9ps9g 6 หลายเดือนก่อน

    Can you please share 3 or 4 small project using OOPS concept, Springboot, Java legacy idea ? With explaination in your video please ? If you already have, can you leave the link as a reply here please?

  • @andrejpetnuch2125
    @andrejpetnuch2125 2 ปีที่แล้ว +1

    when i use @Entity in sringboot, table is not created. Where is the problem?

    • @maxime045
      @maxime045 2 ปีที่แล้ว

      You configured the application.properties ?

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

      @@maxime045 THAT IS CORRECT.

  • @delightful730
    @delightful730 ปีที่แล้ว

    please do with postgreseSql

  • @ravindrakawale5161
    @ravindrakawale5161 2 ปีที่แล้ว

    can we create springboot project in intellij like eclipse

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

      SPRING TOOLS SUITE (STS) IS A ECLIPSE IDE FOR SPRING.

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

    Authentication required showing when testing via Postman. but i did correctly. can you give a solution. how to test it

  • @anantpratapsingh9067
    @anantpratapsingh9067 ปีที่แล้ว

    at 8:29 you printed spring.datasource.url , from where we can get this link and all other syntax ?

    • @subamsarkar_
      @subamsarkar_ ปีที่แล้ว +1

      You can find that in his Github Repo

    • @anantpratapsingh9067
      @anantpratapsingh9067 ปีที่แล้ว

      @@subamsarkar_ धन्यवाद भाई ।

    • @subamsarkar_
      @subamsarkar_ ปีที่แล้ว

      @@anantpratapsingh9067 Bhai are you able to build the project ? I am half way through the video. Did everything same. No error in the console but table is not getting created.

    • @anantpratapsingh9067
      @anantpratapsingh9067 ปีที่แล้ว

      @@subamsarkar_ आपने jpa dependency add किया था

    • @anantpratapsingh9067
      @anantpratapsingh9067 ปีที่แล้ว

      किया ही होगा नहीं तो error आ जाता

  • @rishimohanagnihotri517
    @rishimohanagnihotri517 2 ปีที่แล้ว

    What does @crosaorigin annotation do?

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

      IT ALLOWS THAT GOOGLE CHROME OR MOZILLA OR EDGE DON'S BLOCK YOU WHEN YOU USE POSTMAN.

  • @reverseflash2800
    @reverseflash2800 2 ปีที่แล้ว

    IntelliJ idea free version se kam chal jaayega yaa pro version required hai

    • @JavaGuides
      @JavaGuides  2 ปีที่แล้ว +1

      free community edition version se kam chal jayega.

  • @AJEETKUMAR-dk2kv
    @AJEETKUMAR-dk2kv ปีที่แล้ว

    Hello sir, I'm using eclipse IDE for project....

    • @AJEETKUMAR-dk2kv
      @AJEETKUMAR-dk2kv ปีที่แล้ว

      I'm not able to run it on postman it's always showing error not found...

    • @AJEETKUMAR-dk2kv
      @AJEETKUMAR-dk2kv ปีที่แล้ว

      Do I need to link on MySQL before postman? Coz I haven't done yet...

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

      @@AJEETKUMAR-dk2kv YOU NEED CONFIGURE THE APPLICATION. PROPERTIES FILE AND TYPE THE MYSQL CONNECTION.

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

    IF YOU ARE USING MYSQL DATABASE, SO YOU DON'T NEED HARDCODE WITH COMMAND RUNNER. IT CAN GENERATE CONFUSION.

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

      Didn't get you bro, can you explain. And are you able to create the table from the code?

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

      Yes, once you create the createEmployee() method ...u don't need the Command Runner interface. You can safely delete that , or else it will generate those two employees whenever we run the main class.

  • @chandrasekar3992
    @chandrasekar3992 ปีที่แล้ว

    Text is very small, Can't see properly , It's wasting my time

  • @yarik83men51
    @yarik83men51 2 ปีที่แล้ว

    +++

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

    omg, dont write code that, A project need full have controller, service, repo and model, you not have service?

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

      OMG, you want controller, service, repository then watch another video: th-cam.com/video/yybOzbOLegE/w-d-xo.htmlsi=JrR5T1VmaKIkEM32

  • @subratmishra91
    @subratmishra91 ปีที่แล้ว

    java.lang.ClassCastException: class net.javaguides.springboot.model.Employee cannot be cast to class org.springframework.boot.context.properties.bind.BindResult (net.javaguides.springboot.model.Employee and org.springframework.boot.context.properties.bind.BindResult are in unnamed module of loader 'app')

  • @raja90rocks
    @raja90rocks 2 ปีที่แล้ว

    Hi JavaGuides,
    employee.setFirstName , LastName , email - can't be added facing issues . how to solve ?
    import model.Employee;
    import repository.EmployeeRepository;
    @SpringBootApplication
    public class SpringbootBackendApplication implements CommandLineRunner{
    public static void main(String[] args) {
    SpringApplication.run(SpringbootBackendApplication.class, args);
    }
    @Autowired
    private EmployeeRepository employeeRepository;

    @Override
    public void run(String... args) throws Exception {
    Employee employee=new Employee();
    employee.setFirstName -----------------------------> faced issues can't set the value


    }
    }

    • @N7000nn
      @N7000nn 2 ปีที่แล้ว

      You need to add lombock configuration in your Employee class. Above the class type @Setter and that works like setMethod of any field you have. The same goes for @Getter, @ToString etc..