Skip to content

Arindam205/Springboot-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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/yourusername/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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages