1. 29 3月, 2024 2 次提交
  2. 08 9月, 2023 1 次提交
  3. 07 9月, 2023 1 次提交
  4. 03 9月, 2023 5 次提交
  5. 01 9月, 2023 6 次提交
  6. 31 8月, 2023 5 次提交
  7. 30 8月, 2023 4 次提交
    • R
      Add create static factory method to WebClientAdapter · 32f128b6
      rstoyanchev 提交于
      Closes gh-31120
      32f128b6
    • A
      Fix typo in reference documentation intro · dc7179c5
      Alec Musasa 提交于
      Closes gh-31135
      dc7179c5
    • B
      Fix dependency management in framework-docs module · da1d00be
      Brian Clozel 提交于
      See gh-31049
      da1d00be
    • B
      Stop publishing distribution zip artifact · c93ae250
      Brian Clozel 提交于
      Prior to this commit, the Spring Framework build would publish several
      zip artifacts:
      
      * a "*-schema.zip" containing all the XSD schemas produced
      * a "*-docs.zip" containing the API docs
      * a "*-dist.zip" containing all of the above, plus module jars
      
      Since the reference docs are now produced by Antora in a separate
      process, the "*-docs.zip" does not contain the reference docs anymore.
      But it still contains the API docs which are automatically fetched from
      the artifact repository and published on the docs.spring.io website.
      
      This commit intends to update the current arrangement and optimize the
      build.
      
      First, the "*-dist.zip" is not published anymore, since it cannot be
      consumed anyway by the community: repo.spring.io does not distribute
      release artifacts publicly, developers are expected to get them from
      Maven Central. This arrangement is quite dated anyway and is not really
      useful in current application build setups.
      
      The generation of API docs is moved to a new "framework-api" module,
      separating it from the reference docs module ("framework-docs") which
      contains Java, Kotlin and Asciidoctor sources. This removes the custom
      javadoc aggregation task and instead uses a dedicated Gradle plugin.
      
      This change also adds a new `-PskipDocs` Gradle project property that
      skips entirely the documentation tasks (javadoc, kdocs) as well as the
      "distrbution" tasks managed in the framework-api module.
      This allows developers to publish locally a SNAPSHOT of Spring Framework
      without creating the entire documentation distribution. This is
      particularly useful for local testing.
      
      For example, `$ ./gradlew pTML -PskipDocs`.
      
      Closes gh-31049
      c93ae250
  8. 29 8月, 2023 10 次提交
    • B
      Polish · 9133e616
      Brian Clozel 提交于
      See gh-31104
      9133e616
    • L
      Attempt to reset Servlet response before calling ExceptionHandlers · 1d7cbfa4
      lihan 提交于
      Prior to this commit, the `ExceptionHandlerExceptionResolver` would
      resolve exceptions and handle them by writing to the HTTP response body,
      even if the request was already partially handled and content was
      written to the response body.
      
      This could result in HTTP responses with some content for the intended
      application response, then other content for the handled exception.
      This would happen especially when the error would be raised while
      writing to the response (for example when serializing content).
      
      This commit attempts to reset the HTTP response before handling the
      exception. This effectively resets the response buffer for the body as
      well as response headers. If the response is already committed, the
      Servlet container raises an exception and the exception handling is
      skipped altogether in order to avoid garbled responses.
      
      Closes gh-31104
      1d7cbfa4
    • A
      Add more tests to DefaultClientRequestObservationConvention · 376a8989
      Anna Buyevich 提交于
      Closes gh-31125
      376a8989
    • S
      Add context function to CoRouterFunctionDsl · 38392233
      Sébastien Deleuze 提交于
      This new function allows to customize the CoroutineContext
      potentially dynamically based on the incoming
      ServerRequest.
      
      Closes gh-27010
      38392233
    • B
      Update JDK21 release candidate download URL · 64ff37f4
      Brian Clozel 提交于
      64ff37f4
    • B
      Add ContextPropagatingTaskDecorator · f5a356c9
      Brian Clozel 提交于
      Prior to this commit, `@Async` and `@EventListener` annotated methods
      would lose the the logging and observation contexts whenever their
      execution was scheduled on a different Thread.
      
      The Context Propagation library supports this use case and can propagate
      context values in ThreadLocals, Reactor Context and more.
      
      This commit introduces a new `TaskDecorator` implementation that
      leverages the Context Propagation library. When configured on a
      `TaskExecutor`, this allows to properly propagate context value through
      the execution of the task.
      
      This implementation is completely optional and requires the
      "io.micrometer:context-propagation" library on the classpath. Enabling
      this feature must be done consciously and sometimes selectively, as
      context propagation introduces some overhead.
      
      Closes gh-31130
      f5a356c9
    • S
      Propagate CoroutineContext in coRouter filters · d47c7f95
      Sébastien Deleuze 提交于
      Closes gh-26977
      d47c7f95
    • S
      Replace Reactive awaitSingle() usages by the Mono variant · bcf11e89
      Sébastien Deleuze 提交于
      Closes gh-31127
      bcf11e89
    • S
      Reinstate support for javax.* annotations in component indexer · af03fa76
      Sam Brannen 提交于
      - for consistency with the changes made in e1826d23
      
      See gh-31090
      af03fa76
    • S
      Deprecate convention-based @Component stereotype names in favor of @AliasFor · bfd918d1
      Sam Brannen 提交于
      When use of the deprecated feature is detected, a WARNING log message
      will be generated analogous to the following.
      
      WARN o.s.c.a.AnnotationBeanNameGenerator - Support for convention-based
      stereotype names is deprecated and will be removed in a future version
      of the framework. Please annotate the 'value' attribute in
      @org.springframework.context.annotation.AnnotationBeanNameGeneratorTests$ConventionBasedComponent1
      with @AliasFor(annotation=Component.class) to declare an explicit alias
      for @Component's 'value' attribute.
      
      See gh-31089
      Closes gh-31093
      bfd918d1
  9. 28 8月, 2023 6 次提交