랭킹으로 돌아가기
ali-bouali/spring-boot-3-jwt-security
Javaaliboucoding.com/p/securing-your-spring-boot-3-0-applications-with-json-web-tokens-jwtSample project on how to implement JWT security based using Spring boot 3 and Spring security 6
authenticationdockerdocker-composeintellij-ideajwtjwt-authenticationpostgressqlspring-bootspring-security
주요 지표
스타 성장
스타
2k
포크
929
주간 성장
—
이슈
18
1k2k
2022년 12월2023년 7월2024년 2월2024년 9월2025년 5월2025년 12월2026년 7월
아티팩트Maven
git clone https://github.com/ali-bouali/spring-boot-3-jwt-security.gitREADME
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/ali-bouali/spring-boot-3-jwt-security.git - Navigate to the project directory: cd spring-boot-security-jwt
- Add database "jwt_security" to postgres
- Build the project: mvn clean install
- Run the project: mvn spring-boot:run
-> The application will be available at http://localhost:8080.
관련 저장소