스프링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
'spring' 카테고리의 다른 글
spring IoC, DI (0) | 2015.11.01 |
---|---|
util:properties, properties.xml 사용 및 확장 (0) | 2015.11.01 |
제우스 + 스프링 프로젝트 디플로이시 java.lang.IllegalStateException: Unable to locate the default servlet for serving static content 이 발생할때 (0) | 2015.02.24 |
IllegalArgumentException Pointcut is not well formed expecting pattern (0) | 2015.02.23 |
스프링 RequestMapping 정보 가져오기 (0) | 2013.07.01 |