응답에 대한 헤더 설정이 utf-8로 안되어 있는것이다.
다양한 방법이 있는데 가장 간단한 방법을 소개 하겠다.
@RequestMapping 에 다음을 추가하는것이다.
produces="application/text;charset=utf8"
즉, 아래와 같은 모습이 되면된다.
@RequestMapping(value = "/", method = RequestMethod.POST, produces="application/text;charset=utf8")
'Spring' 카테고리의 다른 글
applicationContext.xml 이 없는경우 (0) | 2020.03.09 |
---|---|
Controller 에서 Controller 로 보내는 방법 (0) | 2020.03.09 |
웹서버 구조와 스프링프레임워크의 장점 (0) | 2020.02.25 |
JAP란? (0) | 2020.02.03 |
ModelAndView (0) | 2020.01.30 |