Sébastien Deleuze
81a66a0334
Add an AbstractGenericHttpMessageConverter constructor
...
This commit adds a new
AbstractGenericHttpMessageConverter(Charset, MediaType...)
constructor, similar to the one present in
AbstractHttpMessageConverter.
Closes gh-33563
2024-09-24 19:40:15 +02:00
Juergen Hoeller
5f6b8d5582
Polishing
2024-09-24 18:59:17 +02:00
Juergen Hoeller
d6e4bd7c90
Resolve AOT factory method target by bean name and reduce reflective method exposure
...
Includes consistent withShortcut naming and consistent bean definition flag exposure.
Removes support for inner classes in alignment with standard core container behavior.
Closes gh-32834
2024-09-24 18:59:08 +02:00
Sam Brannen
aef5143642
Merge branch '6.1.x'
2024-09-24 16:50:12 +02:00
Sam Brannen
5cc4d0a2ca
Do not invoke AotTestExecutionListener for @DisabledInAotMode tests
...
Closes gh-33589
2024-09-24 16:47:48 +02:00
Sam Brannen
6da114054e
Update comment
2024-09-24 15:49:35 +02:00
Sam Brannen
23528a5075
Merge branch '6.1.x'
2024-09-24 15:48:08 +02:00
Sam Brannen
602ac903ff
Upgrade to JUnit 5.10.4
2024-09-24 15:39:53 +02:00
Sam Brannen
dae871b5d3
Clean up warnings in Gradle build
2024-09-24 12:34:20 +02:00
Sam Brannen
f6fcf15745
Merge branch '6.1.x'
2024-09-24 12:33:58 +02:00
Sam Brannen
af3a26ab06
Clean up warnings in Gradle build
2024-09-24 12:33:35 +02:00
Sam Brannen
66a518abd5
Merge branch '6.1.x'
2024-09-24 12:23:47 +02:00
Sam Brannen
1cecf52883
Upgrade to Apache HttpCore Reactive 5.3
...
Closes gh-33588
2024-09-24 12:21:50 +02:00
Sam Brannen
88905ea20d
Upgrade to Apache HttpClient 5.4
...
This commit also updates the external Javadoc link to avoid the following
warning in the build.
URL https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/package-list was redirected to https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/package-list
Closes gh-33587
2024-09-24 12:20:44 +02:00
Sam Brannen
6a9b5d21f4
Document that TestContextAnnotationUtils is required for @Nested support
...
Closes gh-33586
2024-09-24 11:55:44 +02:00
Simon Baslé
f7aa4409bb
Merge branch '6.1.x'
2024-09-24 11:01:57 +02:00
Simon Baslé
7df9db3bb7
Polishing test
...
Assert that BlockHound doesn't trigger, rather than assertions on a
condition that makes the test flakky because concurrency is involved.
2024-09-24 11:01:37 +02:00
Sam Brannen
5bc2ff70b5
Merge branch '6.1.x'
2024-09-24 10:47:14 +02:00
Sam Brannen
bd9c05a909
Upgrade to Gradle 8.10.2
...
Closes gh-33584
2024-09-24 10:46:58 +02:00
Sam Brannen
28dbcb2421
Improve FactoryBean Javadoc
2024-09-23 17:20:19 +02:00
Tran Ngoc Nhan
c85050eb43
Consistently use CharSequence.isEmpty() for emptiness checks
...
Closes gh-33577
2024-09-23 17:10:21 +02:00
Sam Brannen
f321ef9ec2
Improve toString() for AbstractBeanDefinition and BeanMetadataAttribute
...
Closes gh-33579
2024-09-23 16:45:56 +02:00
Sam Brannen
59eaed0b28
Ensure integration tests are suitable for AOT processing
2024-09-23 16:45:56 +02:00
Sam Brannen
7d99790c34
Polishing
2024-09-23 16:45:56 +02:00
rstoyanchev
c6fa180602
Extract shared resource handling utility methods
...
Closes: gh-33574
2024-09-20 19:25:12 +01:00
Juergen Hoeller
df5489b81a
Introduce optionalValue() method on ResultQuerySpec
...
Closes gh-33560
2024-09-20 19:16:02 +02:00
Yanming Zhou
24a8f1b26d
AnnotatedBeanDefinitionReader should respect @Fallback qualifier analogous to @Primary
...
Also add tests to cover qualifier classes.
2024-09-20 19:10:16 +02:00
Johnny Lim
159e23730c
Fix Javadoc @since tags in JettyCoreRequestUpgradeStrategy
...
See gh-32097
Closes gh-33569
2024-09-20 11:34:39 +02:00
Sam Brannen
8931b75b95
Polishing
2024-09-20 10:58:37 +02:00
Johnny Lim
3ba9d35e22
Polish
...
Closes gh-33566
2024-09-20 10:58:37 +02:00
rstoyanchev
6120076437
Merge branch '6.1.x'
2024-09-20 09:33:09 +01:00
Andrey Popov
94c04821ff
Use correct method to check encoded resource path
...
Closes: gh-33568
2024-09-20 09:32:24 +01:00
rstoyanchev
4706ebc81e
Minor refactoring in UrlHandlerFilter
...
See gh-33565
2024-09-19 11:55:53 +01:00
rstoyanchev
2090ece62a
UrlHandlerFilter ignores trailing slash in contextPath
...
Closes gh-33565
2024-09-19 11:55:25 +01:00
Sam Brannen
e587753b1d
Introduce @EasyMockBean bean override example
...
This commit introduces example support for a custom @EasyMockBean
annotation that allows tests to use EasyMock as the mocking framework
for bean overrides in a test's ApplicationContext.
The point of this exercise is to ensure that it is possible for third
parties to introduce bean override support for mocking frameworks other
than Mockito, and that they can do so with the APIs currently in place.
Closes gh-33562
2024-09-18 17:10:06 +02:00
Sam Brannen
6c2cba5d8a
Polish bean override internals
2024-09-18 14:22:15 +02:00
Simon Baslé
c832d5f496
Polishing contribution
...
Fixes gh-33556
2024-09-18 11:44:29 +02:00
Carl Magnuson
453e7961a8
Add read timeout setter on HttpComponentsClientHttpRequestFactory
...
This commit adds support for HttpComponentsClientHttpRequestFactory to
set a read timeout, used on the underlying client as a RequestTimeout.
This brings the HttpComponentsClientHttpRequestFactory into alignment
with JDK, Jetty, OkHttp3, Reactor and SimpleClient
ClientHttpRequestFactory implementations.
See gh-33556
2024-09-18 11:44:29 +02:00
Brian Clozel
6f09c21f05
Merge branch '6.1.x'
2024-09-18 11:21:03 +02:00
Brian Clozel
776811bdb8
Defer ExchangeFilterFunction execution in WebClient
...
Prior to this commit, the `DefaultWebClient` would execute the configured
`ExchangeFilterFunction` as the reactive pipeline is assembled during
subscription. This means that if imperative code is executed in a filter
function, it won't be aware of the current observation through the local
scope.
For example, when automatic context propagation is enabled for Reactor
operators, the logger MDC will not know about the current
traceId/spanId.
This commit ensures that client filter functions execution is deferred
during the actual client exchange.
Fixes gh-33559
2024-09-18 11:18:17 +02:00
Simon Baslé
06d240b558
Merge branch '6.1.x'
2024-09-17 16:42:09 +02:00
Simon Baslé
de4ff4b44b
Polishing tests
...
This commit adds more test coverage of SpringCoreBlockHoundIntegration.
See gh-33450
2024-09-17 16:40:40 +02:00
Simon Baslé
f6e96a24d4
Add BlockHound exception for ConcurrentReferenceHashMap$ReferenceManager
...
This commit adds a SpringCoreBlockHoundIntegration configuration to
allows `pollForPurge` method to block.
Closes gh-33450
2024-09-17 16:40:40 +02:00
Juergen Hoeller
20bc5ef68b
Accept nested array type for upUntilUnresolvable check as well
...
Closes gh-33535
2024-09-17 16:20:54 +02:00
Sébastien Deleuze
383fa43ded
Merge branch '6.1.x'
2024-09-16 16:59:31 +02:00
Antoine Rey
daea92397f
Reference the spring-framework-petclinic repository
...
Closes gh-33539
2024-09-16 16:58:34 +02:00
Sam Brannen
13e175ab46
Avoid use of static import in production code
2024-09-16 15:50:05 +02:00
Sam Brannen
b60bb44256
Polish test @Configuration classes
2024-09-16 15:45:32 +02:00
Sam Brannen
31a6e98eaf
Introduce @Disabled AOT tests for @TestBean support
...
See gh-32933
2024-09-16 15:43:54 +02:00
Sébastien Deleuze
d3755aba06
Add RestClient.Builder#messageConverters(List)
...
This commit also introduces the validation of the RestClient
message converters for both variants.
Closes gh-33536
2024-09-13 16:00:38 +02:00