https://github.com/hendisantika/spring-boot3-jwt-security-sample
Spring Boot 3 JWT Security
https://github.com/hendisantika/spring-boot3-jwt-security-sample
Last synced: 2 months ago
JSON representation
Spring Boot 3 JWT Security
- Host: GitHub
- URL: https://github.com/hendisantika/spring-boot3-jwt-security-sample
- Owner: hendisantika
- Created: 2023-12-16T01:24:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-05T00:01:37.000Z (2 months ago)
- Last Synced: 2025-04-13T00:13:55.271Z (2 months ago)
- Language: Java
- Size: 181 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot 3.0 Security with JWT Implementation
This project demonstrates the implementation of security using Spring Boot 3.0 and JSON Web Tokens (JWT). It includes
the following features:## Features
* User registration and login with JWT authentication
* Password encryption using BCrypt
* Role-based authorization with Spring Security
* Customized access denied handling
* Logout mechanism
* Refresh token## Technologies
* Spring Boot 3.0
* Spring Security
* JSON Web Tokens (JWT)
* BCrypt
* Maven## Getting Started
To get started with this project, you will need to have the following installed on your local machine:
* JDK 17+
* Maven 3+To build and run the project, follow these steps:
* Clone the repository: `git clone https://github.com/hendisantika/spring-boot3-jwt-security-sample.git`
* Navigate to the project directory: `cd spring-boot3-jwt-security-sample`
* Add database "jwt_security" to postgres
* Build the project: `mvn clean install`
* Run the project: `mvn clean spring-boot:run`-> The application will be available at http://localhost:8081.