1. 15 7月, 2015 11 次提交
  2. 14 7月, 2015 6 次提交
  3. 13 7月, 2015 6 次提交
  4. 10 7月, 2015 4 次提交
    • S
      Polish CORS support · 882fe129
      Sebastien Deleuze 提交于
      882fe129
    • S
      Populate RequestAttributes before invoking Filters in MockMvc · 9c46228a
      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
      9c46228a
    • S
      Improve documentation for @IfProfileValue precedence · 3d951755
      Sam Brannen 提交于
      Issue: SPR-11902
      3d951755
    • S
      Introduce CorsFilter and CorsConfigurationMapping · cd9b3903
      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
      cd9b3903
  5. 09 7月, 2015 7 次提交
  6. 08 7月, 2015 6 次提交
    • S
      Fix typos in @EventListener · 14e168f2
      Sam Brannen 提交于
      14e168f2
    • S
      Stop documenting annotations using @AliasFor in Javadoc · 0940f43a
      Sam Brannen 提交于
      The removed listing will later be incorporated into the reference manual
      in a dedicated section.
      
      Issue: SPR-11515
      0940f43a
    • S
      Polishing · f300325b
      Sam Brannen 提交于
      f300325b
    • S
      Avoid Java8 API · e3bb06c8
      Stephane Nicoll 提交于
      e3bb06c8
    • S
      Support for multiple events per method · bf786c31
      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
      bf786c31
    • B
      Fix backwards compatibility in WebContentInterceptor · ef0eb01f
      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
      ef0eb01f