스프링 response body에서 한글 깨질 때

 

스프링 response body에서 한글 깨질 때

 

   <mvc:annotation-driven>
     <mvc:message-converters>
      <!– @ResponseBody로 String 처리할 때 한글처리 –>
      <bean class=”org.springframework.http.converter.StringHttpMessageConverter”>
       <property name=”supportedMediaTypes”>
        <list>
         <value>text/html;charset=EUC-KR</value>
        </list>
       </property>
      </bean>
     </mvc:message-converters>
   </mvc:annotation-driven>