Spring Boot Java Tutorial – REST API using PostgreSQL and JWT

///Spring Boot Java Tutorial – REST API using PostgreSQL and JWT

Spring Boot Java Tutorial – REST API using PostgreSQL and JWT

FavoriteLoadingAdd to favorites

Learn to use Spring Boot and Java to create a complete REST API. We will use PostgreSQL as the relational database and Spring JdbcTemplate for interacting with that. Apart from this, we will add authentication using JWT (JSON Web Tokens).

Java468x60

💻 Code:

🎥 Course from Pair Learning. Check out their YouTube channel:

⭐️ Course Contents ⭐️
⌨️ (0:00) Introduction
⌨️ (09:10) Project Setup & Creating Database Objects
⌨️ (23:07) Persisting User Information on Register
⌨️ (41:05) Login and Hashing Password
⌨️ (48:59) JWT Authentication
⌨️ (1:03:15) Adding New Categories
⌨️ (1:19:51) Category – Find & Update Functionality
⌨️ (1:28:50) Adding Category Transactions
⌨️ (1:42:38) Transaction – Find and Update
⌨️ (1:51:29) Deleting – Category & Transactions
⌨️ (2:00:50) CORS & Testing from Web Client
⌨️ (2:07:22) Summary and Code

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

And subscribe for new videos on technology every day:

source

By |2020-10-25T10:08:14+00:00October 25th, 2020|Java Video Tutorials|24 Comments

24 Comments

  1. Pair Learning October 25, 2020 at 10:08 am - Reply

    Hi Everyone, Hope you enjoyed this video. Come and join our channel for more similar hands-on tutorials on Node.js, React, Redux and many more to come 💻💚

  2. Sadia Waleem October 25, 2020 at 10:08 am - Reply

    Can you integrate the unit tests example with this tutorial?

  3. Irfan Shaikh October 25, 2020 at 10:08 am - Reply

    Thank you for the informative video. I have a quick question, why we put Class name like "User" in the front of the Interface UserRepository?

  4. Shraddha Atrawalkar October 25, 2020 at 10:08 am - Reply

    I can't execute the register service.
    I am getting an Unauthorized 401 error probably because that's what the exception is throwing. but I am not sure what I am missing
    I am using Java8, I have added the dependency like someone suggested.

    I also tried to test by cloning FreeCodeCamp's code from git and there I am getting a invalid CORS request` error

  5. Abdul Khan October 25, 2020 at 10:08 am - Reply

    Nice video..

  6. rvacaro October 25, 2020 at 10:08 am - Reply

    I have a problem it says: fatal: authentication failed.

  7. Artificial Neuron October 25, 2020 at 10:08 am - Reply

    In case some of you have experienced an error when trying to register/login an user with the message: "java.lang.NoClassDefFoundError" let me tell you that all you have to do is add this dependency, that was not included in this tutorial due to the JDK version being used:

    <dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.3.0</version>
    </dependency>

    To put it simple, what this error is telling us is that a key dependency is missing so after a little research all you have to do is add that new dependency to your pom.xml and everything should be ok.

    The explanation is the following: I was using JDK 11 and in Java 11 they have completely removed that dependency from the JDK so you'll need to include it in your project.

  8. williams chukwuebuka October 25, 2020 at 10:08 am - Reply

    I can't register , don't know what the issue is

  9. Juan Pablo Aguirre October 25, 2020 at 10:08 am - Reply

    A lot of boilerplate

  10. Ryan Ceasar Borromeo October 25, 2020 at 10:08 am - Reply

    You should also discuss schema migrations.

  11. Shy IamNot October 25, 2020 at 10:08 am - Reply

    Great content,This is exactly what i want to know.

  12. Vincent Hsin October 25, 2020 at 10:08 am - Reply

    Too many boilerplate codes, inconsistent package naming. The sample is not concise and focus on other things.

  13. Devraj Brajwasi October 25, 2020 at 10:08 am - Reply

    You are 🇮🇳 indian person good knowledge

  14. Sri Harsha October 25, 2020 at 10:08 am - Reply

    Hiii bro,
    Can you please please please tell..how to send a sms to mobile using Java or Spring. Like otp verification or a notification during transactions. Please help me out with this bro

  15. Mohamed Adbib October 25, 2020 at 10:08 am - Reply

    watch the video with speed of 0.75 to listen more clearely

  16. Sagir Ansari October 25, 2020 at 10:08 am - Reply

    why you not used spring security instead handling manual everything ?

  17. Badri Upadhyay October 25, 2020 at 10:08 am - Reply

    With spring data jpa all of the custom jdbc queries can be eliminated.
    To make it easy , hey learners go and see what spring data rest offers you. You will be happy seeing spring boot 😁

  18. Anirudh Atodaria October 25, 2020 at 10:08 am - Reply

    Great! We need more java and spring ❤️

  19. javasoccernut October 25, 2020 at 10:08 am - Reply

    Ok. I've only seen some of the video. There are some good things. Some not. YMMV.

  20. UltimateOf4 October 25, 2020 at 10:08 am - Reply

    I thought Spring Data takes care of most of the connection boilerplate. Is there a reason to not use Spring Data?

  21. vinod patil October 25, 2020 at 10:08 am - Reply

    Project architecture is not good for beginner to understand…!!
    As per my experience, I will recommend any medium article to learn spring-boot REST API instead of watching this for beginner.

  22. Arun Kumar Jena October 25, 2020 at 10:08 am - Reply

    Best tutorial

  23. Kids Friends October 25, 2020 at 10:08 am - Reply

    Awesome I will use this api for angular practice.

  24. viraj bombe October 25, 2020 at 10:08 am - Reply

    Thank you freeCodeCamp for this this tutorial also would like to see more on j2ee technology , Thank you paringLearning for the such great course

Leave A Comment

*