Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p.115 // when부분 HttpMehod.PUT 오타 #48

Closed
JihyeHwang09 opened this issue Dec 12, 2019 · 2 comments
Closed

p.115 // when부분 HttpMehod.PUT 오타 #48

JihyeHwang09 opened this issue Dec 12, 2019 · 2 comments

Comments

@JihyeHwang09
Copy link

JihyeHwang09 commented Dec 12, 2019

p.115

// when
 ResponseEntity<Long> responseEntity = restTemplate.exchange(url, 
HttpMethod.PUT, requestEntity, Long.class);

HttpMethod.PUT으로 적혀있습니다. -> HttpMethod.POST로 정정 부탁드립니다:)

항상 블로그 잘 보고 있습니다. 책에 설명이 쉽게 되어 있어서 이해가 잘됩니다. 감사합니다!

@JihyeHwang09 JihyeHwang09 changed the title p.115 // when부분 HttpMehod 오타 p.115 // when부분 HttpMehod.PUT 오타 Dec 12, 2019
@jojoldu
Copy link
Owner

jojoldu commented Dec 12, 2019

앗? 이건 PUT이 맞습니다
업데이트용 컨트롤러이기 때문에 Controller에도 @PutMapping이 선언되어있고,
테스트에서도 HTTP 메소드인 PUT을 사용해야 합니다.

p.110 의 등록 컨트롤러 코드의 오타를 제보하시려는것이실까요?

#13

@JihyeHwang09
Copy link
Author

앗 제가 헷갈렸네요ㅜ 혼란을 드려서 죄송합니다ㅜ

@jojoldu jojoldu closed this as completed Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants