Last active
January 3, 2016 14:39
-
-
Save bclozel/8477736 to your computer and use it in GitHub Desktop.
SPR-10163 - Configuring RequestMappingHandlerMapping via XML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" | |
use-registered-suffix-pattern-match="true"/> | |
<bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean"> | |
<property name="mediaTypes"> | |
<value> | |
xml=application/rss+xml | |
</value> | |
</property> | |
</bean> | |
</beans> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"> | |
<mvc:annotation-driven | |
use-trailing-slash-match="false" | |
use-suffix-pattern-match="false" | |
enable-matrix-variables="true" | |
path-matcher="myPathMatcher" | |
/> | |
<bean id="myPathMatcher" class="..." /> | |
</beans> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"> | |
<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager"> | |
<mvc:path-matching | |
suffix-pattern="true" | |
trailing-slash="false" | |
registered-suffixes-only="true" | |
path-helper="pathHelper" | |
path-matcher="pathMatcher" /> | |
</mvc:annotation-driven> | |
<bean id="pathMatcher" class="..." /> | |
<bean id="pathHelper" class="..." /> | |
<bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean"> | |
<property name="mediaTypes"> | |
<value> | |
xml=application/rss+xml | |
</value> | |
</property> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wondering if we should add a "use-" prefix for boolean attributes in this proposal