|
@@ -6,7 +6,8 @@ import com.fasterxml.jackson.annotation.PropertyAccessor;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.fasterxml.jackson.databind.SerializationFeature;
|
|
|
import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.autoconfigure.cache.CacheProperties;
|
|
@@ -81,7 +82,7 @@ public class CacheConfiguration {
|
|
|
om.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
|
|
|
// om.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
|
|
om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
|
|
|
- om.activateDefaultTyping(LaissezFaireSubTypeValidator.instance ,ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.WRAPPER_ARRAY);
|
|
|
+ om.activateDefaultTyping(LaissezFaireSubTypeValidator.instance, ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.WRAPPER_ARRAY);
|
|
|
om.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
|
|
// om.registerModule(new JavaTimeModule());
|
|
|
GenericJackson2JsonRedisSerializer genericJackson2JsonRedisSerializer = new GenericJackson2JsonRedisSerializer(om);
|
|
@@ -119,8 +120,8 @@ public class CacheConfiguration {
|
|
|
return new RedisCacheErrorHandler();
|
|
|
}
|
|
|
|
|
|
- @Slf4j
|
|
|
private static class RedisCacheErrorHandler extends SimpleCacheErrorHandler {
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(RedisCacheErrorHandler.class);
|
|
|
|
|
|
@Override
|
|
|
public void handleCacheGetError(RuntimeException exception, Cache cache, Object key) {
|