https://github.com/vimal1464/spring-boot-spring-security-jwt-authentication
About Spring Boot + Security: Token Based Authentication example with JWT, Authorization, Spring Data & MySQL.
https://github.com/vimal1464/spring-boot-spring-security-jwt-authentication
jwt jwt-authentication maven mysql spring-authentication spring-boot spring-boot-jwt spring-boot-server spring-data-jpa spring-security spring-security-jwt springboot3
Last synced: about 1 month ago
JSON representation
About Spring Boot + Security: Token Based Authentication example with JWT, Authorization, Spring Data & MySQL.
- Host: GitHub
- URL: https://github.com/vimal1464/spring-boot-spring-security-jwt-authentication
- Owner: Vimal1464
- Created: 2023-12-29T12:17:34.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-07T14:38:44.000Z (11 months ago)
- Last Synced: 2025-03-31T00:24:31.297Z (2 months ago)
- Topics: jwt, jwt-authentication, maven, mysql, spring-authentication, spring-boot, spring-boot-jwt, spring-boot-server, spring-data-jpa, spring-security, spring-security-jwt, springboot3
- Language: Java
- Homepage:
- Size: 86.9 KB
- Stars: 24
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot + Security: Token Based Authentication Example with JWT
[](https://docs.oracle.com/en/java/javase/11/)
[](https://spring.io/projects/spring-boot)
[](https://spring.io/projects/spring-security)
[](https://github.com/jwtk/jjwt)
[](https://www.mysql.com/)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.
## Features
- **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.## Prerequisites
- Java 17
- Maven
- MySQL 8.0 or later
- MySQL WorkBench## Getting Started
1. Clone the repository:
```bash
git clone https://github.com/Vimal1464/spring-boot-security-jwt-example.git
```2. Navigate to the project directory:
```bash
cd spring-boot-security-jwt-example
```3. Configure MySQL database properties in `src/main/resources/application.properties`.
4. Build and run the application:
```bash
mvn spring-boot:run
```5. Access the application at [http://localhost:8080](http://localhost:8080).
## Contributing
Contributions are welcome! Feel free to open issues and pull requests.
## Vimal This Side Signing off