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.118 브라우저로 API 조회가 안됩니다. #244

Closed
2doSilver opened this issue Feb 9, 2020 · 2 comments
Closed

[오류] p.118 브라우저로 API 조회가 안됩니다. #244

2doSilver opened this issue Feb 9, 2020 · 2 comments

Comments

@2doSilver
Copy link

기존에 올라온 질문이 아닌지 먼저 검색해주세요!

가장 자주 나온 제보

어떤 오류인가요?

오류설명: 118페이지 따라하는 도중 http://localhost:8080/api/v1/posts/1을 입력해 API조회 기능을 테스트해보려고 하는데 진행이 안됩니다.

프로젝트 주소

Github에 오류가 난 프로젝트를 올려주세요.
Github 주소를 작성해주지 않으시면 답변해드릴수가 없어요!

오류 로그

어떤 오류인지 캡쳐해주세요.
image

@MinhoLee93
Copy link

@2doSilver PostsApiController에 오타가 있으시네요 :0

@GetMapping("/api/vi1/posts/{id}")
public PostsResponseDto findById(@PathVariable Long id) {
     return postsService.findById(id);
}

위에서 /api/vi1/posts/{id} 에 vi1을 v1으로 바꾸시면 될꺼에요 :)

@2doSilver
Copy link
Author

@MinhoLee93 설명 감사합니다~ 오타잡는다고 잡았는데 또 있었네요~ 감사합니다! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants