An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# Spring Boot + Security: Token Based Authentication Example with JWT

[![Java Version](https://img.shields.io/badge/Java-17-green.svg)](https://docs.oracle.com/en/java/javase/11/)
[![Spring Boot Version](https://img.shields.io/badge/Spring%20Boot-3.2.0-green.svg)](https://spring.io/projects/spring-boot)
[![Spring Security Version](https://img.shields.io/badge/Spring%20Security-green.svg)](https://spring.io/projects/spring-security)
[![JWT Version](https://img.shields.io/badge/JWT-0.11.5-green.svg)](https://github.com/jwtk/jjwt)
[![MySQL Version](https://img.shields.io/badge/MySQL-8.0-blue.svg)](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