- 10 7月, 2015 3 次提交
-
-
由 Sam Brannen 提交于
When using the Spring TestContext Framework (TCF) to load a WebApplicationContext and the Spring MVC Test Framework (MockMvc) to test a controller, two instances of MockHttpServletRequest will be created. Due to an ordering issue with regard to population of the RequestAttributes, it is therefore possible that a filter accesses the mocked request managed by the TCF, while the controller accesses the mocked request managed by MockMvc, and this leads to test failures if the controller expects data from the filter to be present in the request. This commit fixes this bug by ensuring that the RequestAttributes backed by the mocked request managed by MockMvc are stored in the RequestContextHolder before any filters are invoked by MockMvc. Issue: SPR-13217
-
由 Sam Brannen 提交于
Issue: SPR-11902
-
由 Sebastien Deleuze 提交于
This commit introduces the following changes: - The new CorsConfigurationMapping class allows to share the mapped CorsConfiguration logic between AbstractHandlerMapping and CorsFilter - In AbstractHandlerMapping, the Map<String, CorsConfiguration> corsConfiguration property has been renamed to corsConfigurations - CorsFilter allows to process CORS requests at filter level, using any CorsConfigurationSource implementation (for example CorsConfigurationMapping) Issue: SPR-13192
-
- 09 7月, 2015 7 次提交
-
-
由 Sebastien Deleuze 提交于
Issue: SPR-13120
-
由 Sam Brannen 提交于
Issue: SPR-13012
-
由 Brian Clozel 提交于
By default, RedirectViews have http10Compatible set to true, which means that they use HTTP 302 as a default HTTP response status. Setting this property to false make RedirectViews use HTTP 303 by default. Now when set to false, RedirectViews also don't use the RESPONSE_STATUS_ATTRIBUTE request attribute as a response HTTP if it is available. This commit makes both configuration choices behave the same regarding this request attribute: use it as a response status if it's available. Issue: SPR-13208
-
由 Stephane Nicoll 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 Stephane Nicoll 提交于
-
- 08 7月, 2015 13 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
The removed listing will later be incorporated into the reference manual in a dedicated section. Issue: SPR-11515
-
由 Sam Brannen 提交于
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
In addition to specifying the event type to listen to via a method parameter, any @EventListener annotated method can now alternatively define the event type(s) to listen to via the "classes" attributes (that is aliased to "value"). Something like @EventListener({FooEvent.class, BarEvent.class}) public void handleFooBar() { .... } Issue: SPR-13156
-
由 Brian Clozel 提交于
As of SPR-11792, WebContentGenerator and WebContentInterceptor offer new APIs and new behavior regarding HTTP caching, including the use of a new CacheControl class. Those changes broke part of the behavior in WebContentInterceptor. This class allows to override the global Cache configuration at the Generator level, using specific mappings. Prior to this change, those mappings would not properly apply the HTTP caching configuration when using deprecated configuration settings in WebContentGenerator. This change fixes those backwards compatibility issues for WebContentInterceptor users. Issue: SPR-13207
-
由 Sam Brannen 提交于
This commit adds additional tests to RequestContextHolderTests that verify proper support for the MockHttpServletRequest managed by Spring MVC Test in the following scenarios: - request-scoped service invoked by controller - session-scoped service invoked by controller - custom filter that sets request attributes Issue: SPR-13211
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12579
-
由 Juergen Hoeller 提交于
Issue: SPR-13210
-
由 Sam Brannen 提交于
This commit refactors RequestContextHolderTests in preparation for the work to be done in SPR-13211. Issue: SPR-13211
-
由 Sam Brannen 提交于
-
由 Rossen Stoyanchev 提交于
A note is added to suggest the use of @Primary with a LocalValidatorFactory bean next to the MVC Java config. Issue: SPR-12194
-
由 Rossen Stoyanchev 提交于
Conversion and validation documentation related to Spring MVC is now consolidated in the Spring MVC chapter with references to and from the Validation and Data Binding chapter. Examples have been updated to include MVC Java config as well.
-
- 07 7月, 2015 17 次提交
-
-
由 Stephane Nicoll 提交于
Issue: SPR-7301
-
由 Juergen Hoeller 提交于
Also includes an explicit note on stop vs destroy callbacks for Lifecycle beans. Issue: SPR-13118 Issue: SPR-12882 Issue: SPR-12345 Issue: SPR-11671
-
由 Juergen Hoeller 提交于
Issue: SPR-12896
-
由 Juergen Hoeller 提交于
Issue: SPR-13040
-
由 Juergen Hoeller 提交于
-
由 Sebastien Deleuze 提交于
Issue: SPR-13196
-
由 Juergen Hoeller 提交于
Issue: SPR-13205
-
由 Sebastien Deleuze 提交于
-
由 Sebastien Deleuze 提交于
Issue: SPR-13193
-
由 Sebastien Deleuze 提交于
-
由 Rossen Stoyanchev 提交于
When using Appache Commons FileUpload, multi parts with binary data (i.e. that are not actual files) are saved and then accessed as String request parameters. Before this change however the RequestPartServletServerHttpRequest used a fixed encoding (UTF-8) while the parsing code in CommonsFileUploadSupport/Resolver used the encoding from the content-type header, or the request, or the FileUpload component. This change does a best effort to determine the encoding of the request parameter using a similar algorithm as the parsing side that should work the same unless the encoding comes from the FileUpload component which is not accessible. Issue: SPR-13096
-
由 Rossen Stoyanchev 提交于
Add section on Spring MVC TEst vs full integation testing and provide reference to Spring Boot's @WebIntegrationTest as an alternative. Issue: SPR-13169
-
由 Rossen Stoyanchev 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
DefaultSubscriptionRegistry uses deep LinkedMultiValueMap copies between accessCache and updateCache Issue: SPR-13185
-
由 Juergen Hoeller 提交于
Issue: SPR-13201
-