This repository contains a comprehensive example of token-based authentication using Spring Boot, Spring Security, and JSON Web Tokens (JWT). It includes integration with Spring Data JPA for database interactions and MySQL as the underlying database.
- Token-based Authentication: Secure your Spring Boot application using JSON Web Tokens.
- Spring Security Integration: Leverage Spring Security for robust authentication and authorization.
- Spring Data JPA with MySQL: Store and retrieve user information using Spring Data JPA with MySQL database.
- Maven Build: Simplify project management and dependency resolution with Maven.
- Easy to Use: A well-structured example with detailed comments for easy understanding.
- Java 17
- Maven
- MySQL 8.0 or later
- MySQL WorkBench
-
Clone the repository:
git clone https://github.com/Vimal1464/spring-boot-security-jwt-example.git
-
Navigate to the project directory:
cd spring-boot-security-jwt-example
-
Configure MySQL database properties in
src/main/resources/application.properties
. -
Build and run the application:
mvn spring-boot:run
-
Access the application at http://localhost:8080.
Contributions are welcome! Feel free to open issues and pull requests.