spring-framework
spring-framework copied to clipboard
Spring Framework
Environment: Spring 6.2.0-M1, Java 21 Example project: https://github.com/hantsy/spring6-sandbox/tree/master/test-bean I tried to write a test to experience the new `@MockitoSpyBean`. ```java @SpringJUnitConfig(classes = Config.class) class CustomerServiceMockitoSpyTest { @MockitoSpyBean CustomerService customerService; @Test...
I use the "HandlerInterceptor" to set some attributes to "request" at the invocation of each controller and check the URL parameters. I would like to easily exclude this interceptor from...
Added read-committed transaction isolation and consistency support to TransactionAwareCacheDecorator
The decorator now maintains consistency within the transaction and ensures all changes are only committed to the target cache on successful completion of the transaction. - Added complete isolation and...
In `MediaTypeAssert`, we have both `isEqualTo(Object)` and `isEqualTo(String)`, but only `isNotEqualTo(Object)`. The later is inherited from `AbstractAssert`. As a `String` is never equal to a `MediaType`, the following test _appears_...
Description: I'm using springboot3.2.5 and using RestClient.create() I'm getting an instance request header without content-length, which might be an error on some api service requests. But I'll change it to...
Query string parameters with equals in the value throw and exception in build method: ```java @Test public void equals_in_query_string_value() { var str = "https://localhost:8080/callback?param1=a%20b¶m2=1=2"; var uri = URI.create(str); var actual...
## Motivation The `RestClient.Builder` has [a method](https://github.com/spring-projects/spring-framework/blob/376d7839e0fb6acf902d33eb578b1df143bcaf0b/spring-web/src/main/java/org/springframework/web/client/RestClient.java#L281) that takes a parameter of type `Consumer` to set the default headers. ```kotlin val defaultHeaders = HttpHeaders().apply { contentType = MediaType.APPLICATION_JSON setBasicAuth("encodedCredentials") }...
This PR adds support for varargs invocations where the varargs argument is an array with a component type that is a subtype of the parameter varargs component type. For example,...
#32296 and #32112 are now closed but the sample that I was interested in is still broken (see link in the latter): the `RequestContextHolder` is still empty in an `HttpMessageConverter`...
Prevent cookies to be set to empty in the HTTP request if no cookie is present. The `Cookie` header should not be sent if no cookie is set in the...