1. 19 5月, 2015 1 次提交
    • R
      CORS-related refinements · 5e8d8383
      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.
      5e8d8383
  2. 18 5月, 2015 9 次提交
  3. 17 5月, 2015 4 次提交
    • S
      Introduce TestContextManager cache in SpringClassRule · 973582e7
      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
      973582e7
    • S
      68322fc4
    • S
      Merge from sbrannen/SPR-7731 · 439b6406
      Sam Brannen 提交于
      * SPR-7731:
        Introduce JUnit Rule alternative to SpringJUnit4ClassRunner
      439b6406
    • S
      Introduce JUnit Rule alternative to SpringJUnit4ClassRunner · d1b1c4f8
      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
      d1b1c4f8
  4. 16 5月, 2015 2 次提交
    • S
      Add global CORS configuration capabilities · 49fff751
      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
      49fff751
    • R
      Add SubProtocolErrorHandler · 696a010e
      Rossen Stoyanchev 提交于
      Issue: SPR-12732
      696a010e
  5. 15 5月, 2015 6 次提交
    • S
      Harmonize default converters · 0612bc7b
      Stephane Nicoll 提交于
      Provide Converter implementations for Charset, Currency and TimeZone as
      related PropertyEditors are available for those.
      
      Issue: SPR-13020
      0612bc7b
    • S
      Use BeanUtils to instantiate target type · c0269770
      Stephane Nicoll 提交于
      Use BeanUtils.instantiate(Class<?>) instead of a raw call to
      type.newInstance() as the former has more checks.
      
      Issue: SPR-12520
      c0269770
    • S
      Allow parameter name binding for SimpleJdbcCall · 8dec8823
      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
      8dec8823
    • S
      Document "present" terminology in AnnotationUtils · 477d4c51
      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
      477d4c51
    • R
      Add component-neutral encode option in UriUtils · ca410fea
      Rossen Stoyanchev 提交于
      Issue: SPR-12750, SPR-12942
      ca410fea
    • R
      Add UriTemplateHandler · 3e59c244
      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
      3e59c244
  6. 14 5月, 2015 3 次提交
  7. 13 5月, 2015 13 次提交
  8. 12 5月, 2015 2 次提交