1. 27 1月, 2016 2 次提交
  2. 26 1月, 2016 11 次提交
  3. 25 1月, 2016 6 次提交
  4. 23 1月, 2016 2 次提交
    • B
      Clarify RequestMappingHandlerAdapter javadoc · 2b3ad218
      Brian Clozel 提交于
      This commit updates the javadoc of
      `RequestMappingHanderAdapter.setCacheSecondsForSessionAttributeHandlers`
      to explain how one can disable that feature and prevent "Cache-Control"
      directives from being added when `@SessionAttributes` annotations are
      used on Controllers.
      
      Issue: SPR-13598
      2b3ad218
    • B
      Register prefixed path patterns with FixedVersionStrategy · 84fe46cd
      Brian Clozel 提交于
      Prior to this change, configuring a `FixedVersionStrategy` like so
      would configure a single "/js/**" path pattern:
      
      ```
      versionResourceResolver.addFixedVersionStrategy("v1.0.0","/js/**");
      ```
      
      This commit makes sure that for each path pattern, its prefixed version
      is added to the map. For example, the previous configuration also
      adds "/v1.0.0/js/**".
      
      Issue: SPR-13883
      84fe46cd
  5. 22 1月, 2016 10 次提交
    • B
      Reorder HTTP headers processing in RequestMappingHandlerAdapter · 8f1d06f1
      Brian Clozel 提交于
      Prior to this change, the `RequestMappingHandlerAdapter` would first add
      a "Cache-Control" HTTP header to the response (depending on its
      `WebContentGenerator` configuration and `@SessionAttributes` on the
      handler class); then, the Adapter would delegate the actual handler the
      processing of the request.
      This leads to issues, as the handler does not have full control to the
      response and has to deal with pre-existing headers in the response. This
      means that the Adapter and the handler can add incompatible
      Cache-Control directives without knowing it, since one cannot see the
      headers added by the other until the response is committed.
      
      This commit switches the order of execution: first, the handler is
      called (possibly adding HTTP headers), then the RMHA processes the
      response and adds "Cache-Control" directives *only if there's no
      Cache-Control header already defined*.
      
      Issue: SPR-13867
      8f1d06f1
    • R
      MVC Java config protected factory methods · ebccfd02
      Rossen Stoyanchev 提交于
      This change exposes protected methods for instantiating sub-classes of
      RequestMappingHandlerAdapter and ExceptonHandlerExceptionResolver
      similar to the existing method for RequestMappingHandlerMapping.
      ebccfd02
    • R
      Polish StringHttpMessageConverterTests · 9cc518d1
      Rossen Stoyanchev 提交于
      9cc518d1
    • S
      Polish · cd903e26
      Stephane Nicoll 提交于
      cd903e26
    • A
      Allow use of '&' prefix to access factory bean in SpEL · a12f2393
      Andy Clement 提交于
      Prior to this change SpEL did not have an syntactic
      construct enabling easy access to a FactoryBean. With this
      change it is now possible to use &foo in an expression when
      the factory bean should be returned.
      
      Issue: SPR-9511
      a12f2393
    • R
      MockHttpServletRequestBuilder parses form data · 415b2763
      Rossen Stoyanchev 提交于
      Spring MVC Test now parses application/x-www-form-urlencoded request
      content and populates request parameters from it.
      
      This can be useful when running client-side tests against a MockMvc
      via MockMvcClientHttpRequestFactory.
      
      Issue: SPR-13733
      415b2763
    • R
      Fix failing test · 6a9455b7
      Rossen Stoyanchev 提交于
      6a9455b7
    • R
      ContentRequestMatchers asserts request with form data · 1416c2a0
      Rossen Stoyanchev 提交于
      Issue: SPR-13044
      1416c2a0
    • B
      Fix OutOfBoundsExceptio in ResourceUrlEncodingFilter · 2f6d86b7
      Brian Clozel 提交于
      Prior to this change, the `ResourceUrlEncodingFilter` would try to
      lookup resources URLs as soon as the given URL would be longer than the
      expected context+servlet prefix path. This can lead to
      OutOfBoundsExceptions when the provided URL does not start with that
      prefix and still has the required length.
      
      This commit makes sure that all candidate URLs for resources lookup are
      prefixed with the cached servlet and context path. This underlines the
      fact that the `ResourceUrlEncodingFilter` does not support relative URLs
      for now and delegates to the native servlet implementation in that case.
      
      Issue: SPR-13861
      2f6d86b7
    • R
      HeaderResultMatchers supports multi-value headers · 952a3170
      Rossen Stoyanchev 提交于
      Issue: SPR-10087
      952a3170
  6. 21 1月, 2016 7 次提交
  7. 20 1月, 2016 1 次提交
    • S
      Support Quartz trigger without JobDetail · 29700658
      Stephane Nicoll 提交于
      This commit allows to create a Quartz trigger implementation via
      either `CronTriggerFactoryBean` or `SimpleTriggerFactoryBean` even if no
      job detail is provided.
      
      Issue: SPR-13604
      29700658
  8. 19 1月, 2016 1 次提交