SpringBootRedisHttpSessionConfiguration (and same for other data stores) is a subclass of RedisHttpSessionConfiguration. The base class has proxyBeanMethods=false and the subclass does not. Seems like a bug.

        System.err.println(new SimpleMetadataReaderFactory()
                .getMetadataReader(SpringBootRedisHttpSessionConfiguration.class.getName()).getAnnotationMetadata()
                .getAnnotationAttributes(Configuration.class.getName()).get("proxyBeanMethods"));
        System.err.println(new SimpleMetadataReaderFactory()
                .getMetadataReader(RedisHttpSessionConfiguration.class.getName()).getAnnotationMetadata()
                .getAnnotationAttributes(Configuration.class.getName()).get("proxyBeanMethods"));

prints

true
false

Comment From: dsyer

Duplicates #23380