fix: ObjectMapper 주입 시 단일 매칭 실패(NoUniqueBeanDefinitionException) 해결을 위해 jsonMapper를 objectMapper로 변경하고 Primary 복구
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 13s
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 13s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user