We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc2dbd3 + 2cc01ce commit 1ea7a37Copy full SHA for 1ea7a37
1 file changed
src/main/java/com/fund/stockProject/global/config/RedisConfig.java
@@ -28,11 +28,7 @@ public class RedisConfig {
28
public ObjectMapper redisCacheObjectMapper() {
29
ObjectMapper mapper = new ObjectMapper();
30
mapper.registerModule(new JavaTimeModule());
31
- // 캐시에 저장된 객체를 원래 타입으로 복원하기 위해 타입 정보를 포함
32
- // (GenericJackson2JsonRedisSerializer 사용시 복원 시 LinkedHashMap으로 읽히는 문제 해결)
33
- mapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance,
34
- ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY);
35
-
+ // 타입 정보를 포함하지 않도록 설정 (클린한 JSON)
36
return mapper;
37
}
38
0 commit comments