SessionRepositoryFilterConfiguration.sessionRepositoryFilterRegistration is a filter registration bean which means it's initialized very early. It injects a SessionRepositoryFilter which is defined in SpringHttpSessionConfiguration and itself injects a SessionRepository. If a RedisSessionRepository is being used, then full initialization of Redis occurs.
Comment From: philwebb
This is similar to #4154