Skip to content

Commit

Permalink
fix : Feign 수정사항
Browse files Browse the repository at this point in the history
- ObjectMapper Bean에서 낮추고, 내부 메소드에서 불러오는 방향으로 변경
- Spring의 ObjectMapper는 냅두기로...

ObjectMapper 변경으로 인한 이슈발생으로 인한 수정
  • Loading branch information
donsonioc2010 committed Oct 18, 2023
1 parent 1c15b1c commit 4c355d4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
public class FeignCommonConfig {

@Bean
public Decoder feignDecoder(ObjectMapper customObjectMapper) {
return new JacksonDecoder(customObjectMapper);
public Decoder feignDecoder() {
return new JacksonDecoder(customObjectMapper());
}

@Bean
public ObjectMapper customObjectMapper() {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());
Expand Down

0 comments on commit 4c355d4

Please sign in to comment.