File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/springframework/data/redis/aot Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3131import org .springframework .data .keyvalue .repository .config .QueryCreatorType ;
3232import org .springframework .data .keyvalue .repository .query .KeyValuePartTreeQuery ;
3333import org .springframework .data .keyvalue .repository .support .KeyValueRepositoryFactoryBean ;
34+ import org .springframework .data .redis .cache .RedisCacheManager ;
3435import org .springframework .data .redis .connection .*;
3536import org .springframework .data .redis .core .*;
3637import org .springframework .data .redis .core .convert .KeyspaceConfiguration ;
@@ -59,6 +60,10 @@ class RedisRuntimeHints implements RuntimeHintsRegistrar {
5960 @ Override
6061 public void registerHints (RuntimeHints hints , @ Nullable ClassLoader classLoader ) {
6162
63+ // CACHE
64+ hints .serialization ().registerType (org .springframework .cache .support .NullValue .class ,
65+ hint -> hint .onReachableType (TypeReference .of (RedisCacheManager .class )));
66+
6267 // REFLECTION
6368 hints .reflection ().registerTypes (Arrays .asList (TypeReference .of (RedisConnection .class ),
6469 TypeReference .of (StringRedisConnection .class ), TypeReference .of (DefaultedRedisConnection .class ),
You can’t perform that action at this time.
0 commit comments