Minimal Spring Boot sample app.
For building and running the application you need:
There are several ways to run a Spring Boot application on your local machine. One way is to execute the main
method in the java.wali.hassan.jwtmicroServics.JwtMicroServicsApplication
class from your IDE.
- Run your server
- Open postman
- Visit localhost:8080 or if you have custom port you can use it
- The Respond will be 401 Unauthorized
- That mean you have to login wth Basic auth using the given credential below
- To get token you can send post request to localhost:8080/token
- and use Basic auth with user:admin and password:password
- This will give you a token that will be valid for 1 hour
- Now you can use token to visit url like localhost:8080
- The response of this api will hi , admin
Released under the Apache License 2.0. See the LICENSE file.