DEV Community

Cover image for Spring Boot 3 JPA + Auth + JWT

Posted on

Spring Boot 3 JPA + Auth + JWT


After the new release of spring boot 3, it was really hard to find tutorials on JWT Auth with real database user creation and role based authentication on Rest API.

I have created this repo for Spring Boot 3 latest release.
It's a simple implementation of Spring Boot 3 JPA + Auth + JWT with PostgreSQL database.

The app also uses Http-Only Cookies to set and authenticate REST API endpoints.

The app uses Spring Web, Spring Security, Spring JPA, PostgreSQL, jjwt and lombok dependencies.

Lombok is a gem for every spring boot developer.😉
The app uses Graalvm Native Image too.🎉

GitHub Repo: Spring-Boot-3-Auth-JWT-Cookie-JPA

Top comments (2)

antonydelgado profile image

Thank you very much!!

I used your code with neo4j and run ok.

ozair0 profile image