When you log in using the application, your session is saved to Redis. This means that even if the application is restarted, your session will not be invalidated because it is already stored in Redis.
- Java 17
- Spring Boot 3.0
- Spring Data JPA
- Spring Session
- Redis
- Lombok
- MySQL Database
- Restful API
- Maven
- Docker
- Docker Compose
- Maven or Docker
The application can be built and run by the Docker
engine. The Dockerfile
has multistage build, so you do not need to build and run separately.
Please follow the below directions in order to build and run the application with Docker Compose;
$ cd spring_session_redis
$ docker-compose up -d
To build and run the application with Maven
, please follow the directions below;
$ cd spring_session_redis
$ mvn clean install
$ mvn spring-boot:run