Skip to content

sample rest api written in spring boot 3 with jwt security for those who want to start learning api writing in java

Notifications You must be signed in to change notification settings

clonerplus/rest-api

Repository files navigation

spring-rest-api-with-jwt

build

What is this?

This is a sample project demos how to use JWT token based authentication to protect the RESTful APIs in a Spring WebMVC application.

Guide

Check the full GUIDE to get the detailed explanation of the example codes.

Prerequisites

Make sure you have installed the following software.

  • Java 17
  • Apache Maven 3.9.x

Build

Clone the source codes from Github.

git clone https://github.com/clonerplus/rest-api

Open a terminal, and switch to the root folder of the project, and run the following command to build the whole project.

mvn clean install // build the project

Run the application.

mvn spring-boot:run
// or from command line after building
java -jar target/xxx.jar

Contribution

Any suggestions are welcome, filing an issue or submitting a PR is also highly recommended. If you found this project helpful, consider giving it a star ⭐️ for others to find! ❤️

GitHub stars

About

sample rest api written in spring boot 3 with jwt security for those who want to start learning api writing in java

Topics

Resources

Stars

Watchers

Forks

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy