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.109 Json parsing Error #215

Closed
css9596 opened this issue Feb 1, 2020 · 2 comments
Closed

[오류] p.109 Json parsing Error #215

css9596 opened this issue Feb 1, 2020 · 2 comments

Comments

@css9596
Copy link

css9596 commented Feb 1, 2020

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

어떤 오류인가요?

오류설명: PostsApiControllerTest 코드 작성 후 Test시 에러 발생
//when
ResponseEntity responseEntity = restTemplate.postForEntity(url, requestDto, Long.class);

이 부분에서..
JSON parse error: Cannot deserialize instance of java.lang.Long out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.Long out of START_OBJECT token
at [Source: (PushbackInputStream); line: 1, column: 1]

이런 에러가 발생했습니다.

프로젝트 주소

Github에 오류가 난 프로젝트를 올려주세요.

오류 로그

p 109 Console Error

@daknichu
Copy link

daknichu commented Feb 3, 2020

#194 번 이슈의 오타가 원인 인듯 합니다.

@jojoldu jojoldu closed this as completed Feb 5, 2020
@jojoldu
Copy link
Owner

jojoldu commented Feb 5, 2020

@css9596 앗 책의 오타였습니다 ㅠㅠ 오해를 드려서 정말 죄송합니다 ㅠ

@daknichu 님 답변 감사합니다 :)

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