Commit Graph

27954 Commits

Author SHA1 Message Date
Stéphane Nicoll
84128a81fa Merge branch '3.3.x' into 3.4.x
Closes gh-45100
2025-04-10 16:35:11 +02:00
Stéphane Nicoll
b4c6c55493 Allow ResourcesClassLoader to participate in CGLIB's cache
This commit updates ResourcesClassLoader to be a SmartClassLoader and
expose the original ClassLoader. This has the effect of making sure
proxies that are created by CGLIB can be reused against different tests
rather than having CGLIB trying to define the class again and fail.

Closes gh-45065
2025-04-10 16:22:14 +02:00
Stéphane Nicoll
87cd1bb7fd Merge branch '3.3.x' into 3.4.x
Closes gh-45047
2025-04-10 10:14:11 +02:00
Stéphane Nicoll
cfd5e45d57 Remove link
See gh-44767
2025-04-10 10:13:31 +02:00
Andy Wilkinson
3580f1aa36 Polish "Add details of the purpose of the metrics endpoint"
See gh-44767
2025-04-10 10:08:02 +02:00
Jonatan Ivanov
23c3c2753a Add details of the purpose of the metrics endpoint
See gh-44767
2025-04-10 10:08:02 +02:00
Phillip Webb
837fa4c4d8 Merge branch '3.3.x' into 3.4.x 2025-04-09 14:52:15 -07:00
Phillip Webb
c6e74955a7 Update copyright year of changed files 2025-04-09 14:51:49 -07:00
Phillip Webb
bcda6aeb65 Merge branch '3.3.x' into 3.4.x 2025-04-09 14:51:31 -07:00
Phillip Webb
4af0ee20d1 Work around Spring Framework cache pollution bug
Update `SpringApplication` to work around `SpringFactoriesLoader`
cache pollution by loading factories using a `null` class loader.

See https://github.com/spring-projects/spring-framework/pull/34732
for details.
2025-04-09 14:51:17 -07:00
Phillip Webb
e29dc450a6 Merge branch '3.3.x' into 3.4.x
Closes gh-45039
2025-04-08 15:09:25 -07:00
Phillip Webb
46b14de6e9 Polish 'Handle generics with identical names in different positions'
See gh-45011
2025-04-08 15:07:51 -07:00
Dmytro Nosan
e24fd50615 Handle generics with identical names in different positions
Update `TypeUtils` to handle generics with identical names in different
positions.

See gh-45011

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-08 15:05:42 -07:00
Moritz Halbritter
97ed923e50 Explicitly set Host header when using LocalHttpClientTransport
Closes gh-45028
2025-04-08 14:29:16 +02:00
Moritz Halbritter
257ce0a839 Merge branch '3.3.x' into 3.4.x
Closes gh-45033
2025-04-08 11:31:29 +02:00
Neven C
f13dc345cf Escape the asterisk in spring-application.adoc
See gh-45032

Signed-off-by: Neven C <neven.cvetkovic@gmail.com>
2025-04-08 11:26:19 +02:00
Phillip Webb
cf39de4df4 Merge branch '3.3.x' into 3.4.x 2025-04-07 16:20:58 -07:00
Phillip Webb
5d1e488344 Polish 2025-04-07 16:20:52 -07:00
Moritz Halbritter
c7608ec495 Merge branch '3.3.x' into 3.4.x
Closes gh-45023
2025-04-07 14:38:45 +02:00
Yanming Zhou
89fb48691a Polish AutoConfigurationMetadataLoader
Align to other final classes, the protected modifier is meaningless.

See gh-45020

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-04-07 14:30:02 +02:00
Dmytro Nosan
5e966f9576 Polish RestClientAutoConfiguration and RestClientBuilderConfigurer
See gh-44982

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-07 10:48:43 +02:00
geniuus
aaaa791cea Validate that sslInfo is not null in SslHealthIndicator constructor
The SslHealthIndicator constructor previously did not validate if the
provided SslInfo instance was null. This could potentially lead to a
NullPointerException later when the doHealthCheck method is invoked
if the SslInfo bean was not properly configured or available.

This commit adds an Assert.notNull check for the sslInfo parameter
to ensure fail-fast behavior during application startup or bean
creation. This aligns with the common practice in other Spring Boot
components and health indicators where essential dependencies are
validated in the constructor.

See gh-45013

Signed-off-by: geniuus <cross_man@naver.com>
2025-04-07 08:59:05 +02:00
Andy Wilkinson
63adda60d7 Merge branch '3.3.x' into 3.4.x
Closes gh-45002
2025-04-04 12:09:00 +01:00
Andy Wilkinson
3e9dddb42c Allow data source class name to be specified when using Hikari
Closes gh-44938
2025-04-04 11:14:47 +01:00
Andy Wilkinson
e107e11bb8 Merge branch '3.3.x' into 3.4.x
Closes gh-44998
2025-04-04 09:28:03 +01:00
Andy Wilkinson
e9fff8150d Avoid triggering NPE in Hikari with null driverClassName
Previously, the post-processing of HikariDataSource to apply custom
connection details would trigger an NPE in Hikari if those details
supplied a null driverClassName.

This commit avoids the problem by only setting the driverClassName
when it is non-null.

Closes gh-44997
2025-04-04 09:14:44 +01:00
Andy Wilkinson
617f3d525f Merge branch '3.3.x' into 3.4.x
Closes gh-44995
2025-04-04 08:52:45 +01:00
Andy Wilkinson
cae3a92ead Fix NPE with Hikari when DatabaseDriver has null driverClassName
Fixes gh-44994
2025-04-04 08:38:27 +01:00
Phillip Webb
fc9937d05a Merge branch '3.3.x' into 3.4.x 2025-04-03 18:06:33 -07:00
Phillip Webb
88e8c17369 Update copyright year of changed files 2025-04-03 18:06:14 -07:00
Phillip Webb
c96835bc9d Merge branch '3.3.x' into 3.4.x
Closes gh-44992
2025-04-03 18:02:57 -07:00
Phillip Webb
f2d367a130 Update 'for removal in' comments since 3.5 will be the last 3.x release
Closes gh-44959
2025-04-03 17:52:22 -07:00
Andy Wilkinson
d0612f5e0e Merge branch '3.3.x' into 3.4.x
Closes gh-44976
2025-04-02 13:40:33 +01:00
ali-jalaal
48909a432f Add reference to Styra (OPA) Spring Boot SDK
See gh-44951

Signed-off-by: ali-jalaal <4487124+ali-jalaal@users.noreply.github.com>
2025-04-02 13:40:02 +01:00
Andy Wilkinson
703ecef0bf Merge branch '3.3.x' into 3.4.x
Closes gh-44974
2025-04-02 11:24:31 +01:00
Dmytro Nosan
a55f5f0aac Fix CassandraRepositoriesAutoConfigurationTests
Update CassandraRepositoriesAutoConfigurationTests to use the correct
'spring.data.cassandra.repositories.type' property.

See gh-44942

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
2025-04-02 10:45:50 +01:00
Andy Wilkinson
7630c7c505 Merge branch '3.3.x' into 3.4.x
Closes gh-44972
2025-04-02 10:40:55 +01:00
Johnny Lim
f3d2ab824e Polish
See gh-44949

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-04-02 10:15:36 +01:00
Andy Wilkinson
b1fb36bf4b Merge branch '3.3.x' into 3.4.x
Closes gh-44968
2025-04-01 10:31:59 +01:00
Andy Wilkinson
a8381e7cbd Ensure that only spring-core's ReflectionUtils is used
Closes gh-44837
2025-04-01 10:30:58 +01:00
Andy Wilkinson
05f9177abc Merge branch '3.3.x' into 3.4.x
Closes gh-44966
2025-04-01 10:05:34 +01:00
Andy Wilkinson
d07cc59907 Polish security documentation
This commit updates the WebFlux security documentation, primarily to
link to reactive types rather than their Servlet-based equivalents.
It also attempts to clarify when a user details service is
auto-configured.

Closes gh-44955
2025-04-01 10:05:25 +01:00
Andreas Ahlenstorf
64843ec2f0 Replace mentions of deprecated MockBean annotation
See gh-44947

Signed-off-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
2025-04-01 08:55:22 +02:00
Andy Wilkinson
6ad48639c2 Back port 246c4a2 to 3.3.x
The changes do not apply cleanly when cherry-picked so they
have been redone manually.

Closes gh-44941
2025-03-28 16:48:50 +00:00
Andy Wilkinson
96ffb2b1a0 Merge branch '3.3.x' into 3.4.x
Closes gh-44940
2025-03-28 16:27:38 +00:00
Andy Wilkinson
bed6ad3c43 Polish UserDetailsServiceAutoConfigurationTests
Closes gh-44939
2025-03-28 16:26:47 +00:00
Andy Wilkinson
16e4449a33 Merge branch '3.3.x' into 3.4.x
Closes gh-44936
2025-03-28 14:49:48 +00:00
Andy Wilkinson
aab929d029 Polish ReactiveUserDetailsServiceAutoConfigurationTests
Closes gh-44934
2025-03-28 14:49:21 +00:00
Andy Wilkinson
37164603a4 Merge branch '3.3.x' into 3.4.x 2025-03-28 09:10:35 +00:00
Andy Wilkinson
d1345c4d9e Address javadoc warnings in FileWatcherTests 2025-03-28 09:10:19 +00:00