Demo Spring Security (v2.7.11) project for testing Redis Insight v2.26, when Serialized Java objects stored in redis.
For simplicity, sample users are stored in-memory (see /config/SecurityConfig.java
), and not in a persistent database.
- Java JDK 8 or higher
- Redis server v6.0 or higher
- Any web browser
- Edit file application.yml, with your Redis credentials
- Run project using either your Java IDE (any can work), or command-line (
./mvnw spring-boot:run
) - Open your browser to http://localhost:9000/login
- Login with username
demo
and passp@ssword
. Session should be stored in redis now. - Check RedisInsight, refresh. Change format to JAVA serialized.
- Done. Observe scrambled characters, especially for SETS and HASH .