This project demonstrates a Spring Boot application with JWT (JSON Web Token) authentication. It includes the following features:
- User registration and login endpoints
- Secure API endpoints with JWT authentication
- Role-based access control
- Password hashing with BCrypt
- Token validation and refresh mechanism
- Spring Boot
- Spring Security
- JWT
- JPA/Hibernate
- MySQL/PostgreSQL (or any other database)
-
Clone the repository:
git clone https://github.com/your-username/spring-jwt-authentication.git
-
Configure the database:
Update the
application.properties
file with your database credentials. -
Run the application:
mvn spring-boot:run
/api/auth/register
- User registration/api/auth/login
- User login and JWT token generation/api/secure/**
- Secure endpoints requiring JWT authentication
This project is licensed under the MIT License.
Feel free to customize this description to better fit your specific project and preferences!