Skip to content

Commit

Permalink
Set JSON as a default content type #68
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbunkov committed Nov 12, 2019
1 parent a60d28c commit 867f61d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
<!-- Override web implementation bean in main context -->
<bean id="cuba_Events" class="com.haulmont.cuba.core.sys.EventsImpl"/>

<mvc:annotation-driven/>
<bean id="contentNegotiationManager"
class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
<property name="defaultContentType" value="application/json"/>
</bean>

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

<mvc:interceptors>
<mvc:interceptor>
Expand Down

0 comments on commit 867f61d

Please sign in to comment.