[Spring Boot] Postman 에 "Content type 'text/plain;charset=UTF-8' not supported" 뜰 때 해결 방법
·
TIL/시행착오 모음
상황 - REST API로 로그인/회원가입 기능을 구현하기 위해 스프링부트 코딩중 - Postman을 이용해 아이디와 비밀번호를 입력해준 후, 정상작동되는지 확인하기 위해 테스트 중 (일치시 토큰 발급됨) 문제 발생 원인 - message에 나온 그대로 Content Type인 text/plain이 지원되지 않아 발생한 문제다. - 찾아보니까 Postman에서 Content Type을 text/plain으로 자동 설정해서 발생한 문제였다. 해결방법 - Content Type을 application/json으로 설정해주면 된다. 출처 : https://velog.io/@ds257873/Content-type-textplaincharsetUTF-8-not-supported