Removing HTML media type
This commit is contained in:
parent
66f34a4503
commit
9b0682b2fb
|
@ -23,16 +23,15 @@
|
||||||
<!-- Content strategy using path extension -->
|
<!-- Content strategy using path extension -->
|
||||||
<bean id="contentNegotiationManager"
|
<bean id="contentNegotiationManager"
|
||||||
class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
|
class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
|
||||||
<property name="favorPathExtension" value="true" />
|
<property name="favorPathExtension" value="false" />
|
||||||
<property name="favorParameter" value="false"/>
|
<property name="favorParameter" value="true"/>
|
||||||
<property name="parameterName" value="mediaType"/>
|
<property name="parameterName" value="mediaType"/>
|
||||||
<property name="ignoreAcceptHeader" value="true" />
|
<property name="ignoreAcceptHeader" value="true" />
|
||||||
<property name="defaultContentType" value="text/html" />
|
<property name="defaultContentType" value="application/json" />
|
||||||
<property name="useJaf" value="false" />
|
<property name="useJaf" value="false" />
|
||||||
|
|
||||||
<property name="mediaTypes">
|
<property name="mediaTypes">
|
||||||
<map>
|
<map>
|
||||||
<entry key="html" value="text/html" />
|
|
||||||
<entry key="json" value="application/json" />
|
<entry key="json" value="application/json" />
|
||||||
<entry key="xml" value="application/xml" />
|
<entry key="xml" value="application/xml" />
|
||||||
</map>
|
</map>
|
||||||
|
|
Loading…
Reference in New Issue