- 19 5月, 2015 1 次提交
-
-
由 Rossen Stoyanchev 提交于
After this change CorsProcessor has a single processRequest method and it also explicitly deals with a null CorsConfiguration, which for pre-flight requests results in a rejection while for simple requests results in no CORS headers added. The AbstractHandlerMapping now uses a LinkedHashMap to preserve the order in which global patterns are provided.
-
- 18 5月, 2015 9 次提交
-
-
由 Stephane Nicoll 提交于
Issue: SPR-12702
-
由 Juergen Hoeller 提交于
Issue: SPR-13038
-
由 Juergen Hoeller 提交于
ByteBufferConverter also defensively returns the rewind result now. Issue: SPR-13031
-
由 Juergen Hoeller 提交于
Issue: SPR-13024
-
由 Arjen Poutsma 提交于
-
由 Sebastien Deleuze 提交于
Issue: SPR-12933
-
由 Arjen Poutsma 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
- 17 5月, 2015 4 次提交
-
-
由 Sam Brannen 提交于
In order to simplify configuration of the SpringMethodRule and to ensure that the correct TestContextManager is always retrieved for the currently executing test class, this commit introduces a static TestContextManager cache in SpringClassRule. In addition, since it is not foreseen that SpringClassRule and SpringMethodRule should be able to be subclassed, their internal methods are now private instead of protected. Issue: SPR-7731
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
* SPR-7731: Introduce JUnit Rule alternative to SpringJUnit4ClassRunner
-
由 Sam Brannen 提交于
Since Spring Framework 2.5, support for integrating the Spring TestContext Framework (TCF) into JUnit 4 based tests has been provided via the SpringJUnit4ClassRunner, but this approach precludes the ability for tests to be run with alternative runners like JUnit's Parameterized or third-party runners such as the MockitoJUnitRunner. This commit remedies this situation by introducing @ClassRule and @Rule based alternatives to the SpringJUnit4ClassRunner. These rules are independent of any Runner and can therefore be combined with alternative runners. Due to the limitations of JUnit's implementation of rules, as of JUnit 4.12 it is currently impossible to create a single rule that can be applied both at the class level and at the method level (with access to the test instance). Consequently, this commit introduces the following two rules that must be used together. - SpringClassRule: a JUnit TestRule that provides the class-level functionality of the TCF to JUnit-based tests - SpringMethodRule: a JUnit MethodRule that provides the instance-level and method-level functionality of the TCF to JUnit-based tests In addition, this commit also introduces the following new JUnit Statements for use with rules: - RunPrepareTestInstanceCallbacks - ProfileValueChecker Issue: SPR-7731
-
- 16 5月, 2015 2 次提交
-
-
由 Sebastien Deleuze 提交于
This commit adds JavaConfig based global CORS configuration capabilities to Spring MVC. It is now possible to specify multiple CORS configurations, each mapped on a path pattern, by overriding WebMvcConfigurerAdapter#configureCrossOrigin(CrossOriginConfigurer). It is also possible to combine global and @CrossOrigin based CORS configuration. Issue: SPR-12933
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12732
-
- 15 5月, 2015 6 次提交
-
-
由 Stephane Nicoll 提交于
Provide Converter implementations for Charset, Currency and TimeZone as related PropertyEditors are available for those. Issue: SPR-13020
-
由 Stephane Nicoll 提交于
Use BeanUtils.instantiate(Class<?>) instead of a raw call to type.newInstance() as the former has more checks. Issue: SPR-12520
-
由 Stephane Nicoll 提交于
Update SimpleJdbcCall to offer a way to use named parameters binding instead of the simple `?` binding it offers thus far. Issue: SPR-12801
-
由 Sam Brannen 提交于
Prior to this commit, the documentation in AnnotationUtils was inconsistent, and at times even misleading, with regard to finding annotations that are "present" or "directly present" on annotated elements. This commit defines the terminology used within AnnotationUtils and introduces the explicit notion of "meta-present" to denote that annotations are present within annotation hierarchies above annotated elements. Issue: SPR-13030
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12750, SPR-12942
-
由 Rossen Stoyanchev 提交于
This change introduces a strategy for expanding a URI template into a URI and makes it a property of the RestTemplate and AsyncRestTemplate so that they can be pre-configured with such a strategy. The DefaultUriTemplateHandler relies on UriComponentsBuilder internally and provides functionality equivalent to using the UriTemplate. A DefaultUriTemplateHandler can also be configured to parse the path of a URI template into path segments in order to allow expanding URI variables according to path segment encoding rules. Issue: SPR-12750
-
- 14 5月, 2015 3 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12750
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12984
-
由 Sam Brannen 提交于
This commit updates code that previously used getAnnotationAttributes() in AnnotatedElementUtils to use findAnnotationAttributes(), where appropriate. Issue: SPR-12738
-
- 13 5月, 2015 13 次提交
-
-
由 Sam Brannen 提交于
This commit updates the "get semantics" search algorithm used in `AnnotatedElementUtils` so that locally declared 'composed annotations' are favored over inherited annotations. Specifically, the internal `searchWithGetSemantics()` method now searches locally declared annotations before searching inherited annotations. All TODOs in `AnnotatedElementUtilsTests` have been completed, and all ignored tests have been reinstated. Issue: SPR-11598
-
由 Sam Brannen 提交于
Issue: SPR-11598
-
由 Juergen Hoeller 提交于
Issue: SPR-7773
-
由 Juergen Hoeller 提交于
Issue: SPR-13023
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-13021
-
由 Juergen Hoeller 提交于
Issue: SPR-13019
-
由 Brian Clozel 提交于
Prior to this commit, the ResourceUrlEncodingFilter would fail with a StringIndexOutOfBoundsException when: * the current request has a servlet context * the URL to encode is relative and is shorter than the context value This change defensively checks for those lengths and delegates to the parent implementation if necessary. Issue: SPR-13018
-
由 Juergen Hoeller 提交于
DataBinder allows for adding custom Formatters as alternative to PropertyEditors (including per-field formatters) Includes a generic FormatterPropertyEditorAdapter plus Number conversion support in TypeConverterDelegate. Issue: SPR-7773 Issue: SPR-6069
-
由 Juergen Hoeller 提交于
Issue: SPR-12696
-
由 Juergen Hoeller 提交于
Issue: SPR-13016
-
由 Rossen Stoyanchev 提交于
This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. The DefaultSimpUserRegistry implementation is also a SmartApplicationListener which listesn for ApplicationContext events when users connect, disconnect, subscribe, and unsubscribe to destinations. The MultiServerUserRegistry implementation is a composite that aggregates user information from the local SimpUserRegistry as well as snapshots of user on remote application servers. UserRegistryMessageHandler is used with MultiServerUserRegistry. It broadcats user registry information through the broker and listens for similar broadcasts from other servers. This must be enabled explicitly when configuring the STOMP broker relay. The existing UserSessionRegistry which was primiarly used internally to resolve a user name to session id's has been deprecated and is no longer used. If an application configures a custom UserSessionRegistr still, it will be adapted accordingly to SimpUserRegistry but the effect is rather limited (comparable to pre-existing functionality) and will not work in multi-server scenarios. Issue: SPR-12029
-
由 Sam Brannen 提交于
This commit improves the documentation for AnnotationUtils and AnnotatedElementUtils by explaining that the scope of most annotation searches is limited to finding the first such annotation, resulting in additional such annotations being silently ignored. Issue: SPR-13015
-
- 12 5月, 2015 2 次提交
-
-
由 Juergen Hoeller 提交于
(cherry picked from commit 9e925aa8)
-
由 Juergen Hoeller 提交于
(cherry picked from commit a8f75399)
-