Simple jwt authentication spring boot template, automatically generates tables inside postgresql. Also added refresh token to expand better user experience
- Java 21
- Spring Boot 4.x.x
- PostgreSQL
You have to have installed:
- Java 21
- Maven (or use the included mvnw wrapper)
- Docker & Docker Compose
git clone https://github.com/Yuqoi/Spring-boot-jwt-template.git
cd Spring-boot-jwt-templateWarning
Change in application.yaml url to your credentials
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://<address>:<port>/<db_name>
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
name: jwt
Run the application
mvn spring-boot:runOr run the tests
mvn test