Currently, the RedisReactiveAutoConfiguration class (source) in Spring Boot directly constructs an instance of o.s.data.redis.serializer.JdkSerializationRedisSerializer.

It would be better if Spring Boot used the RedisSerializer.java(:ClassLoader) method instead. See Javadoc.

In this way, Spring Boot is not tied to any implementation detail from Spring Data Redis if or when Spring Data Redis decides to change the implementation class for Java-based serialization.

Comment From: wilkinsona

Thanks for the suggestion, John. It looks like we can make that change in 2.7.x onwards.

If JdkSerializationRedisSerializer is considered to be an implementation detail, perhaps it could, after a deprecation period, be made package-private?