clonerplus / rest-api

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 99.8%Language:Dockerfile 0.2%