Skip to content

About Spring Boot + Security: Token Based Authentication example with JWT, Authorization, Spring Data & MySQL.

Notifications You must be signed in to change notification settings

Vimal1464/spring-boot-spring-security-jwt-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot + Security: Token Based Authentication Example with JWT

Java Version Spring Boot Version Spring Security Version JWT Version MySQL Version

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:

    git clone https://github.com/Vimal1464/spring-boot-security-jwt-example.git
  2. Navigate to the project directory:

    cd spring-boot-security-jwt-example
  3. Configure MySQL database properties in src/main/resources/application.properties.

  4. Build and run the application:

    mvn spring-boot:run
  5. Access the application at http://localhost:8080.

Contributing

Contributions are welcome! Feel free to open issues and pull requests.

Vimal This Side Signing off