spring-framework
spring-framework copied to clipboard
Spring Framework
My observation is that method overrides (e.g., `ReplaceOverride` and `LookupOverride`) work fine with no AOT processing, but as soon as an AOT build is carried out, the generated subclasses do...
Hello, We are developing a document submission application using WebFlux. However, we have noticed that handling multipart requests is slower with WebFlux compared to MVC. For example, when using MultipartFile...
I'm migrating my Spring/Springboot application and found a strange behavior: This code worked on SpringBoot 3.2.5 ``` HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); headers.add("rid", SOME_VALUE_THAT_CAN_BE_NULL)); HttpEntity entity = new HttpEntity(headers);...
I've updated the documentation to indicate that a ResponseEntity can be returned from a WebFlux controller. On a separate note, since file uploads and downloads are common requirements in the...
At the moment, I find no equivalent of WebClient's `toBodilessEntity` within WebTestClient. Use-case: Simply inspect that response is returned when its content cannot be inspected or it makes no sense...
A need often arises for a version of `ThrowingConsumer` and `ThrowingFunction` that can be used as a `Runnable`. This merge request introduces a subclass of `Runnable` that is a copy...
This PR removes Thread.sleep from async tests in DefaultAsyncServerResponseTests and replaces it with a non-blocking CompletableFuture pattern. This makes the test more deterministic and avoids timing-based flakiness. ### 🔍 What...
This PR applies a minor formatting polish in `DefaultEntityResponseBuilder` by adding a missing space after a comma for improved readability. ```java - writeEntityWithMessageConverters(this.entity, servletRequest,servletResponse, context); + writeEntityWithMessageConverters(this.entity, servletRequest, servletResponse, context);
`MockMvcClientHttpRequestFactory` was deprecated in Spring 7 with the following deprecation message: `Deprecated in favor of RestTestClient.bindTo(MockMvc)`. I use this factory in the following test code, to create a test client...
## Overview Recent versions of the `javadoc` command support [`-since`](https://docs.oracle.com/en/java/javase/24/docs/specs/man/javadoc.html#option-since) and [`-since-label`](https://docs.oracle.com/en/java/javase/24/docs/specs/man/javadoc.html#option-since-label) options which allow `@since` and `@Deprecated(since=...)` information to be included in the generated Javadoc HTML. ## Examples for...