remove useless code

This commit is contained in:
alvis 2020-11-22 13:32:37 +08:00
parent 15ce5c73cd
commit 4ee37785c2
2 changed files with 1 additions and 21 deletions

View File

@ -3,7 +3,7 @@ package com.mindskip.xzs.configuration.property;
public class CookieConfig { public class CookieConfig {
public static String getName() { public static String getName() {
return "exam"; return "xzs";
} }
public static Integer getInterval() { public static Integer getInterval() {

View File

@ -29,26 +29,6 @@ import java.time.Duration;
@EnableCaching @EnableCaching
public class CacheConfig extends CachingConfigurerSupport { public class CacheConfig extends CachingConfigurerSupport {
/* @Autowired
private CacheProperties cacheProperties;*/
/**
* redis序列化修改为ObjectMapper
*
* @return RedisCacheConfiguration
*/
/* @Bean
public RedisCacheConfiguration redisCacheConfiguration() {
Jackson2JsonRedisSerializer<Object> serializer = new Jackson2JsonRedisSerializer<Object>(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默认序列化方式 * spring boot redis默认序列化方式
* *