Sort of template of application with configured spring security via jwt.
Spring boot version: 3.2.0
Spring Security version: 6.2.0
Don't forget to configure application.yml by your needs!
How to run this thing:
- Install Docker
- Pull PostgreSQL Docker image via
docker pull postgres
- Run a PostgreSQL container with your desired database name, username and password:
docker run --name postgres-db -e POSTGRES_DB=YOURDBNAME -e POSTGRES_USER=YOURUSERNAME -e POSTGRES_PASSWORD=YOURPASSWORD -p 5432:5432 -d postgres
- Configure application.yml (I commented where and what you should put)
- Add your database as datasource in your IDE
- Start the application