fix: ObjectMapper 주입 시 단일 매칭 실패(NoUniqueBeanDefinitionException) 해결을 위해 jsonMapper를 objectMapper로 변경하고 Primary 복구
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 13s

This commit is contained in:
jade
2026-08-27 09:05:14 +09:00
parent 2fbf805afb
commit ffe5777fea

View File

@@ -26,7 +26,8 @@ public class JacksonConfig {
// 1. JSON 변환기(ObjectMapper)를 스프링 Bean으로 등록
@Bean
public ObjectMapper jsonMapper() {
@Primary
public ObjectMapper objectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
return mapper;