스프링4.x에서 @ResponseBody 오류해결

http://kamsi76.egloos.com/m/1218899

<dependency>
    <groupId>com.fasterxml.jackson.jaxrs</groupId>
    <artifactId>jackson-jaxrs-base</artifactId>
    <version>2.4.4</version>
</dependency>

<mvc:annotation-driven  content-negotiation-manager="contentNegotiationManager" /> 

 <bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
      <property name="favorPathExtension" value="false" />
      <property name="favorParameter" value="true" />
      <property name="mediaTypes" >
           <value>
                json=application/json
                xml=application/xml
           </value>
      </property>
 </bean>



Content Negotiationion using JSON/XML

http://theblasfrompas.blogspot.com.au/2013/10/spring-mvc-rest-content-negotiation.html
Posted by 張's blog
,