1. 20 3月, 2019 1 次提交
  2. 23 8月, 2018 1 次提交
  3. 25 7月, 2018 3 次提交
  4. 23 7月, 2018 1 次提交
    • S
      Catch errors when adding SourceHttpMessageConverter · b09fad13
      Sebastien Deleuze 提交于
      This commit ignores errors like TransformerFactoryConfigurationError
      that can be thrown when instantiating SourceHttpMessageConverter on
      platforms where no TransformerFactory implementation is available,
      like when compiling/running as GraalVM native images.
      
      Issue: SPR-17007
      b09fad13
  5. 11 7月, 2018 1 次提交
  6. 28 6月, 2018 2 次提交
  7. 09 6月, 2018 1 次提交
  8. 08 6月, 2018 1 次提交
  9. 08 5月, 2018 1 次提交
  10. 18 1月, 2018 1 次提交
  11. 21 11月, 2017 2 次提交
  12. 10 11月, 2017 1 次提交
  13. 21 10月, 2017 1 次提交
  14. 11 10月, 2017 1 次提交
    • B
      Share HandlerInterceptors in ResourceHandlerMapping · 1356bd43
      Brian Clozel 提交于
      Prior to this commit, the Resource `HandlerMapping` configured by
      `@EnableSpringMvc` would be set up with only one custom
      `HandlerInterceptor` (the one exposing the `ResourceUrlProvider` for
      resolving URLs of static resources).
      
      This behavior is not consistent with the rest of the default
      configuration which leverages the interceptors configured against the
      interceptor registry (with possible user-provided ones).
      
      This change allows to register interceptors against resource handling;
      this can be useful for metrics purposes, as in
      spring-projects/spring-boot#10335.
      
      Issue: SPR-16034
      1356bd43
  15. 28 9月, 2017 2 次提交
  16. 25 8月, 2017 1 次提交
    • B
      Support HTTP range requests in MVC Controllers · 582014e9
      Brian Clozel 提交于
      Prior to this commit, HTTP Range requests were only supported by the
      ResourceHttpRequestHandler when serving static resources.
      
      This commit improves the `HttpEntityMethodProcessor` and
      the `RequestResponseBodyMethodProcessor`. They now extract
      `ResourceRegion`s from the `Resource` instance returned by the
      Controller and let the Resource-related message converters
      handle the writing of the resource (including partial writes).
      
      Controller methods can now handle Range requests for
      return types that extend Resource or HttpEntity:
      
          @RequestMapping("/example/video.mp4")
          public Resource handler() { }
      
          @RequestMapping("/example/video.mp4")
          public HttpEntity<Resource> handler() { }
      
      Issue: SPR-15789, SPR-13834
      582014e9
  17. 19 7月, 2017 1 次提交
    • S
      Make getters and setters null-safety consistent · fb4ddb07
      Sebastien Deleuze 提交于
      This commit ensure that null-safety is consistent between
      getters and setters in order to be able to provide beans
      with properties with a common type when type safety is
      taken in account like with Kotlin.
      
      It also add a few missing property level @Nullable
      annotations.
      
      Issue: SPR-15792
      fb4ddb07
  18. 30 6月, 2017 1 次提交
  19. 07 6月, 2017 1 次提交
    • J
      Consistent use of @Nullable across the codebase (even for internals) · f813712f
      Juergen Hoeller 提交于
      Beyond just formally declaring the current behavior, this revision actually enforces non-null behavior in selected signatures now, not tolerating null values anymore when not explicitly documented. It also changes some utility methods with historic null-in/null-out tolerance towards enforced non-null return values, making them a proper citizen in non-null assignments.
      
      Some issues are left as to-do: in particular a thorough revision of spring-test, and a few tests with unclear failures (ignored as "TODO: NULLABLE") to be sorted out in a follow-up commit.
      
      Issue: SPR-15540
      f813712f
  20. 31 5月, 2017 1 次提交
  21. 27 5月, 2017 1 次提交
    • S
      Introduce null-safety of Spring Framework API · 87598f48
      Sebastien Deleuze 提交于
      This commit introduces 2 new @Nullable and @NonNullApi
      annotations that leverage JSR 305 (dormant but available via
      Findbugs jsr305 dependency and already used by libraries
      like OkHttp) meta-annotations to specify explicitly
      null-safety of Spring Framework parameters and return values.
      
      In order to avoid adding too much annotations, the
      default is set at package level with @NonNullApi and
      @Nullable annotations are added when needed at parameter or
      return value level. These annotations are intended to be used
      on Spring Framework itself but also by other Spring projects.
      
      @Nullable annotations have been introduced based on Javadoc
      and search of patterns like "return null;". It is expected that
      nullability of Spring Framework API will be polished with
      complementary commits.
      
      In practice, this will make the whole Spring Framework API
      null-safe for Kotlin projects (when KT-10942 will be fixed)
      since Kotlin will be able to leverage these annotations to
      know if a parameter or a return value is nullable or not. But
      this is also useful for Java developers as well since IntelliJ
      IDEA, for example, also understands these annotations to
      generate warnings when unsafe nullable usages are detected.
      
      Issue: SPR-15540
      87598f48
  22. 21 4月, 2017 1 次提交
  23. 10 4月, 2017 1 次提交
  24. 22 2月, 2017 1 次提交
  25. 09 2月, 2017 2 次提交
  26. 08 1月, 2017 1 次提交
  27. 07 1月, 2017 1 次提交
  28. 30 8月, 2016 1 次提交
    • S
      Add Smile and CBOR Jackson data formats support · e8530c91
      Sebastien Deleuze 提交于
      This commit adds Smile and CBOR Jackson HttpMessageConverters
      and make it possible to create Smile and CBOR ObjectMapper via
      Jackson2ObjectMapperBuilder, which now allows to specify any
      custom JsonFactory.
      
      Like with JSON and XML Jackson support, the relevant
      HttpMessageConverters are automaticially configurered by
      Spring MVC WebMvcConfigurationSupport if jackson-dataformat-smile
      or jackson-dataformat-cbor dependencies are found in the classpath.
      
      Issue: SPR-14435
      e8530c91
  29. 18 8月, 2016 2 次提交
  30. 20 7月, 2016 1 次提交
  31. 05 7月, 2016 1 次提交
  32. 07 6月, 2016 1 次提交
  33. 05 3月, 2016 1 次提交