프롤로그에서는 콘텐츠가 허용되지 않습니다.

2023. 12. 20. 11:12plming/Java-Spring Boot

Test를 실행했는데, Error가 났다.

 

xxxTest
[Fatal Error] :1:1: 프롤로그에서는 콘텐츠가 허용되지 않습니다.
:::
org.springframework.restdocs.payload.PayloadHandlingException:
Cannot handle application/json;charset=UTF-8 content as it could not be parsed as JSON or XML

 

Req로 사용하는 Class의 인자에 한글 이 들어가 있다면

1단, 영문 인자로 바꾸면 사라진다.

 

reqDto.setA( "한글" );

 

 

한글 인자여도, Test 실패하지 않는 방법 좀;;;