This is a sample project demos how to use JWT token based authentication to protect the RESTful APIs in a Spring WebMVC application.
Check the full GUIDE to get the detailed explanation of the example codes.
Make sure you have installed the following software.
- Java 17
- Apache Maven 3.9.x
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
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! ❤️