File tree Expand file tree Collapse file tree
src/main/java/com/fund/stockProject/global/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,10 +58,8 @@ public CacheManager cacheManager(
5858
5959 Map <String , RedisCacheConfiguration > cacheConfigurations = new HashMap <>();
6060
61- @ SuppressWarnings ("unchecked" )
62- RedisSerializer <Object > stockInfoSerializer =
63- (RedisSerializer <Object >) new Jackson2JsonRedisSerializer <>(StockInfoResponse .class );
64- ((Jackson2JsonRedisSerializer <?>) stockInfoSerializer ).setObjectMapper (redisCacheObjectMapper );
61+ Jackson2JsonRedisSerializer <Object > stockInfoSerializer =
62+ new Jackson2JsonRedisSerializer <>(redisCacheObjectMapper , Object .class );
6563 RedisSerializationContext .SerializationPair <Object > stockInfoSerializationPair =
6664 RedisSerializationContext .SerializationPair .fromSerializer (stockInfoSerializer );
6765
You can’t perform that action at this time.
0 commit comments