This project was my first experience with Spring Security and JWT, but it was a very important starting point for learning how to implement security in APIs.
So I am posting the completed project here and I take the opportunity to leave a piece of advice:
Who is starting to learn how to implement security in APIs and is having difficulties, just like I did, watch this course created and made available by Nelson
from the Amigoscode channel on youtube. The way he teaches is very easy to understand and you left with much more knowledge to delve into more advanced topics on
Spring Security
Spring Security | FULL COURSE
-
Clone this Github repository.
git clone https://github.com/LeonCarraro/curso-amigoscode-springsecurity.git
-
Navigate to the project folder.
cd curso-amigoscode-springsecurity
-
Download Maven dependencies.
mvnw clean install -U
-
Now you just need to run the SpringSecurityApiSpringBootApplication main class.
mvnw spring-boot:run