@@ -32623,7 +32623,7 @@ To support the resolution of a view based on a file extension, use the
32623
32623
extensions to media types. For more information on the algorithm used to determine the
32624
32624
request media type, refer to the API documentation for `ContentNegotiatingViewResolver`.
32625
32625
32626
- Here is an example configuration of a `ContentNegotiatingViewResolver:`
32626
+ Here is an example configuration of a `ContentNegotiatingViewResolver`:
32627
32627
32628
32628
[source,xml,indent=0]
32629
32629
[subs="verbatim,quotes"]
@@ -32647,7 +32647,7 @@ Here is an example configuration of a `ContentNegotiatingViewResolver:`
32647
32647
</property>
32648
32648
<property name="defaultViews">
32649
32649
<list>
32650
- <bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView" />
32650
+ <bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"/>
32651
32651
</list>
32652
32652
</property>
32653
32653
</bean>
@@ -34054,7 +34054,7 @@ context defined):
34054
34054
http://www.springframework.org/schema/mvc
34055
34055
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
34056
34056
34057
- <mvc:annotation-driven />
34057
+ <mvc:annotation-driven/>
34058
34058
34059
34059
</beans>
34060
34060
----
@@ -34191,15 +34191,15 @@ And in XML use the `<mvc:interceptors>` element:
34191
34191
[subs="verbatim"]
34192
34192
----
34193
34193
<mvc:interceptors>
34194
- <bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" />
34194
+ <bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"/>
34195
34195
<mvc:interceptor>
34196
34196
<mvc:mapping path="/**"/>
34197
34197
<mvc:exclude-mapping path="/admin/**"/>
34198
- <bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor" />
34198
+ <bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor"/>
34199
34199
</mvc:interceptor>
34200
34200
<mvc:interceptor>
34201
34201
<mvc:mapping path="/secure/*"/>
34202
- <bean class="org.example.SecurityInterceptor" />
34202
+ <bean class="org.example.SecurityInterceptor"/>
34203
34203
</mvc:interceptor>
34204
34204
</mvc:interceptors>
34205
34205
----
@@ -34250,11 +34250,11 @@ that in turn can be created with a `ContentNegotiationManagerFactoryBean`:
34250
34250
[source,xml,indent=0]
34251
34251
[subs="verbatim,quotes"]
34252
34252
----
34253
- <mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" />
34253
+ <mvc:annotation-driven content-negotiation-manager="contentNegotiationManager"/>
34254
34254
34255
34255
<bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
34256
- <property name="favorPathExtension" value="false" />
34257
- <property name="favorParameter" value="true" />
34256
+ <property name="favorPathExtension" value="false"/>
34257
+ <property name="favorParameter" value="true"/>
34258
34258
<property name="mediaTypes" >
34259
34259
<value>
34260
34260
json=application/json
@@ -34270,7 +34270,7 @@ for request mapping purposes, and `RequestMappingHandlerAdapter` and
34270
34270
`ExceptionHandlerExceptionResolver` for content negotiation purposes.
34271
34271
34272
34272
Note that `ContentNegotiatingViewResolver` now can also be configured with a
34273
- `ContentNegotiatingViewResolver `, so you can use one instance throughout Spring MVC.
34273
+ `ContentNegotiationManager `, so you can use one instance throughout Spring MVC.
34274
34274
34275
34275
In more advanced cases, it may be useful to configure multiple
34276
34276
`ContentNegotiationManager` instances that in turn may contain custom
@@ -34346,10 +34346,10 @@ And the same in XML:
34346
34346
<mvc:view-resolvers>
34347
34347
<mvc:content-negotiation>
34348
34348
<mvc:default-views>
34349
- <bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView" />
34349
+ <bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"/>
34350
34350
</mvc:default-views>
34351
34351
</mvc:content-negotiation>
34352
- <mvc:jsp />
34352
+ <mvc:jsp/>
34353
34353
</mvc:view-resolvers>
34354
34354
----
34355
34355
@@ -34365,14 +34365,14 @@ The MVC namespace provides dedicated elements. For example with FreeMarker:
34365
34365
<mvc:view-resolvers>
34366
34366
<mvc:content-negotiation>
34367
34367
<mvc:default-views>
34368
- <bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView" />
34368
+ <bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"/>
34369
34369
</mvc:default-views>
34370
34370
</mvc:content-negotiation>
34371
- <mvc:freemarker cache="false" />
34371
+ <mvc:freemarker cache="false"/>
34372
34372
</mvc:view-resolvers>
34373
34373
34374
34374
<mvc:freemarker-configurer>
34375
- <mvc:template-loader-path location="/freemarker" />
34375
+ <mvc:template-loader-path location="/freemarker"/>
34376
34376
</mvc:freemarker-configurer>
34377
34377
34378
34378
----
@@ -34689,11 +34689,11 @@ And the same in XML, use the `<mvc:path-matching>` element:
34689
34689
trailing-slash="false"
34690
34690
registered-suffixes-only="true"
34691
34691
path-helper="pathHelper"
34692
- path-matcher="pathMatcher" />
34692
+ path-matcher="pathMatcher"/>
34693
34693
</mvc:annotation-driven>
34694
34694
34695
- <bean id="pathHelper" class="org.example.app.MyPathHelper" />
34696
- <bean id="pathMatcher" class="org.example.app.MyPathMatcher" />
34695
+ <bean id="pathHelper" class="org.example.app.MyPathHelper"/>
34696
+ <bean id="pathMatcher" class="org.example.app.MyPathMatcher"/>
34697
34697
----
34698
34698
34699
34699
0 commit comments