Detect custom ContentNegotiationViewResolver
The <mvc:annotation-driven> element now adds an alias when a ContentNegotiationManager bean is registered with a custom name. This helps <mvc:view-resolvers> to more reliably find such a custom ContentNegotiationManager. Issue: SPR-13559
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
|
||||
<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" />
|
||||
|
||||
<mvc:view-resolvers>
|
||||
<mvc:content-negotiation/>
|
||||
</mvc:view-resolvers>
|
||||
|
||||
<bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
|
||||
<property name="mediaTypes">
|
||||
<value>
|
||||
|
||||
Reference in New Issue
Block a user