티스토리 뷰

String 반환 대신 ResponseEntity  사용

header 에는 "Content-Type", "application/json; charset=UTF-8" 추가 되어 있어야 함

 

https://otep.tistory.com/38

 

* 기타

StringHttpMessageConverter 선언하는 방법 있었으나

알 수 없는 <mvc:message-converters> 에서 SAXParserException 발생하여 시도해보지 못함.

https://stackoverflow.com/questions/19218122/cvc-complex-type-2-4-c-the-matching-wildcard-is-strict-but-no-declaration-can

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함