강의

멘토링

커뮤니티

Inflearn Community Q&A

h4tr3dy0u0166's profile image
h4tr3dy0u0166

asked

Spring Boot Web MVC developed with Kotlin

PUT and ObjectMapper

@JsonNaming 관련 문의드립니다.

Written on

·

369

0

좋은 강의 잘 듣고 있습니다. ^-^

 

궁금한 점은

post-mapping 예제에서는 UserReuqest 클래스의  @JsonNaming 을 이용하여

phone_number 로 사용했고

put-mapping 예제에서는 @JsonNaming를 삭제한 후 phoneNumber로 사용했습니다.

 

이렇게되면 UserRequest 객체의 수정이 있어 post-mapping 의 결과가 예상과 다르게 동작할텐데요..

 

혹시 같은 UserRequest를 사용하면서 두 예제를 동시에 만족하는 방법이 있을까요?

JUnitspring-bootMVCrest-api

Answer 1

0

아마 강의 진행하면서 꼬이신거 같은데 이거는 팀 컨벤션에 따라 하나로 통합하는게 좋을거 같아요

h4tr3dy0u0166's profile image
h4tr3dy0u0166

asked

Ask a question