From 4ee37785c269e7a6d0f50263ef41d447773555e8 Mon Sep 17 00:00:00 2001 From: alvis Date: Sun, 22 Nov 2020 13:32:37 +0800 Subject: [PATCH] remove useless code --- .../configuration/property/CookieConfig.java | 2 +- .../spring/cache/CacheConfig.java | 20 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/CookieConfig.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/CookieConfig.java index 913d4e4..37e89b4 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/CookieConfig.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/CookieConfig.java @@ -3,7 +3,7 @@ package com.mindskip.xzs.configuration.property; public class CookieConfig { public static String getName() { - return "exam"; + return "xzs"; } public static Integer getInterval() { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/cache/CacheConfig.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/cache/CacheConfig.java index 774aeb0..ef76cfd 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/cache/CacheConfig.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/cache/CacheConfig.java @@ -29,26 +29,6 @@ import java.time.Duration; @EnableCaching public class CacheConfig extends CachingConfigurerSupport { -/* @Autowired - private CacheProperties cacheProperties;*/ - - /** - * redis序列化修改为ObjectMapper - * - * @return RedisCacheConfiguration - */ -/* @Bean - public RedisCacheConfiguration redisCacheConfiguration() { - Jackson2JsonRedisSerializer serializer = new Jackson2JsonRedisSerializer(Object.class); - ObjectMapper objectMapper = new ObjectMapper(); - objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); - objectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); - serializer.setObjectMapper(objectMapper); - return RedisCacheConfiguration.defaultCacheConfig().entryTtl(cacheProperties.getRedis().getTimeToLive()) - .serializeValuesWith(RedisSerializationContext.SerializationPair.fromSerializer(serializer)); - }*/ - - /** * spring boot redis默认序列化方式 *