728x90
오류코드
WARN 12108 --- [nio-8080-exec-4] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character ('/' (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature 'ALLOW_COMMENTS' not enabled for parser); nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('/' (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature 'ALLOW_COMMENTS' not enabled for parser)<EOL> at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 2]]
원인
1. JSON데이터 내에 /(슬래시)가 포함되어 발생
2. 주석처리가 인식되어 이슈가 되어 발생하기도 함
해결방법
Postman에서 주석처리한 부분을 지우고 다시 send한다
728x90
'Java & Spring > Error' 카테고리의 다른 글
[에러해결] Note: Recompile with -Xlint:unchecked for details. (0) | 2022.08.30 |
---|---|
[에러해결] Content type 'text/plain;charset=UTF-8' not supported (0) | 2022.08.29 |
[에러해결] Postman 400, 404 에러 (0) | 2022.08.20 |
[에러해결] SpringBoot 중 Lombok문제 (0) | 2022.08.16 |
[에러해결] finished with non-zero exit value 1 (0) | 2022.08.16 |