Commit Graph
800 Commits
Author SHA1 Message Date
Andy Wilkinson c51788b4ee Remove stale metadata that was hiding new properties
See gh-48870
2026-01-20 12:58:52 +00:00
Andy Wilkinson 44748296c7 Merge branch '4.0.x'
Closes gh-48903
2026-01-20 10:02:18 +00:00
Johnny Lim 485b16ad0a Remove @ConditionalOnClass(Sniffer.class) on RestClientSnifferConfiguration
The condition is unnecessary as the sniifer is now included in the
same jar as the REST client itself.

See gh-48900

Signed-off-by: Johnny Lim <izeye@naver.com>
2026-01-20 09:59:59 +00:00
Andy Wilkinson 60bad35a1c Merge branch '4.0.x'
See gh-48633
2026-01-20 09:55:01 +00:00
Andy Wilkinson 85f3f3856d Revert "Allow a custom JsonFactory to be used with JsonMapper.Builder"
This reverts commit 22d6f6a7de.

See gh-48594
2026-01-20 09:34:39 +00:00
Andy Wilkinson e1cf93c545 Polish "Add properties for format-agnostic read and write features"
Apply the format-agnostic read and write feature properties to all
supported mappers (CBOR, JSON, and XML), not just JSON.

See gh-48870
2026-01-20 09:28:13 +00:00
michaldo 9c15debfb2 Add properties for format-agnostic read and write features
Signed-off-by: michaldo <michaldo@github.com>

See gh-48870
2026-01-20 09:28:13 +00:00
Moritz Halbritter c9be84af6e Delete web server's temporary directories when the context is closed
Closes gh-9983
2026-01-20 10:16:54 +01:00
paullee714 1e458eff63 Add spring.data.rest.return-body-on-delete configuration property
This commit adds the missing returnBodyOnDelete property to
DataRestProperties, completing the symmetric configuration for
controlling response body behavior across all CRUD operations.

The property maps to RepositoryRestConfiguration.setReturnBodyOnDelete()
which was added in Spring Data REST 4.1.

Signed-off-by: paullee714 <woolba714@kakao.com>

See gh-48872
2026-01-19 14:54:05 +00:00
Andy Wilkinson 7d0d003786 Merge branch '4.0.x'
Closes gh-48898
2026-01-19 10:24:24 +00:00
Andy Wilkinson 6df1caf8f9 Auto-configure transactions when using spring-boot-kafka
spring-kafka has an api dependency on spring-tx, placing
the latter on the compile classpath of the former's consumers.
Additionally, when spring.kafka.producer.transaction-id-prefix is
set, the Kafka auto-configuration will define a Kafka-based
transaction manager. However, the transaction manager won't be used
without some configuration from the user as there's no dependency on
spring-boot-transaction and, therefore, no auto-configuration of
@EnableTransactionManagement.

This commit adds a spring-boot-transaction dependency to
spring-boot-kafka, aligning it with the spring-tx dependency that
spring-kafka already has.

Fixes gh-48880
2026-01-19 10:23:12 +00:00
Andy Wilkinson bbe82d61c5 Polish "Allow user-provided alternatives to MockRestServiceServer beans"
See gh-48825
2026-01-16 09:40:57 +00:00
HuitaePark f21bab293b Allow user-provided alternatives to MockRestServiceServer beans
Previously, MockRestServiceServerAutoConfiguration unconditionally
defined its beans, preventing the user from providing an alternative.

This commit adds @ConditionalOnMissingBean to ensure the auto-configuration
backs off when a user-provided alternatives are present.

See gh-48825

Signed-off-by: HuitaePark <qkrgmlxo3174@gmail.com>
2026-01-16 09:40:57 +00:00
Phillip Webb a1b7a6c34d Merge branch '4.0.x'
Closes gh-48861
2026-01-15 18:20:20 -08:00
Phillip Webb ea564d21e0 Ensure that the session same site defaults to "lax"
Remove the `always()` call from the same site mapping and replace `as`
with a direct call. This update means that mapping only occurs when
`getSameSite` is not `null`, but mapping can still be applied if
`sameSite.getAttributeValue()` returns `null`.

Closes gh-48830
2026-01-15 17:36:56 -08:00
Phillip Webb 5d2373eab8 Merge branch '3.5.x' into 4.0.x 2026-01-15 17:33:45 -08:00
Andy Wilkinson 4e6ce7b141 Merge branch '4.0.x'
Closes gh-48844
2026-01-15 14:31:24 +00:00
Andy Wilkinson 625571c3d1 Fix MVC and WebFlux validator creation in a native image
Following modularization, a presence check for ValidatorAdapter was
needed in the MVC and WebFlux auto-configuratiomn when creating
their Validators. Runtime hints to allow this check to work in a
native image were not added at the same time, resulting in the
class appearing to be absent. This caused message interpolation
for constraint violations to fail as newly created Validator was
being used which lacked the necessary MessageInterpolator
configuration.

This commit adds reflection hints for ValidatorAdapter, allowing
re-use of the context's main validator as the MVC and WebFlux
validators.

Fixes gh-48828
2026-01-15 14:12:33 +00:00
Andy Wilkinson e11994c54f Merge branch '4.0.x'
See gh-48823
2026-01-15 12:02:55 +00:00
Andy Wilkinson e8cea82772 Don't require …TestAutoConfiguration classes in imports file
See gh-48822
2026-01-15 12:01:46 +00:00
Andy Wilkinson d15ce76b7b Merge branch '4.0.x'
Closes gh-48843
2026-01-15 12:00:27 +00:00
Andy Wilkinson bd4c43bf53 Make s-b-restclient test autoconfigs package-private
Fixes gh-48820
2026-01-15 11:54:57 +00:00
Andy Wilkinson 2d53ffb955 Merge branch '4.0.x'
Closes gh-48842
2026-01-15 11:22:30 +00:00
mspiess ce20e1ed20 Move schema.graphqls into test module
Spring Projects that have the `spring.graphql.schema.locations` property
set to `"classpath*:graphql/**/"` as suggested in the documentation have
failing GraphQL tests after upgrading to Spring Boot 4.
The `Query` type definition in the books-domain schema clashes with the
schema of the application. Presumably the books-domain schema was never
meant to exist in the exported JAR file. This commit moves it into the
test module to stop it from being exported and causing problems.

Signed-off-by: mspiess <30656914+mspiess@users.noreply.github.com>

See gh-48829
2026-01-15 11:20:54 +00:00
Andy Wilkinson 6eaeeccd38 Merge branch '4.0.x'
Closes gh-48827
2026-01-14 15:48:58 +00:00
Andy Wilkinson 7af147d091 Fix CloudFoundry actuator auto-config in absence of RestTemplateBuilder
Previously, CloudFoundryActuatorAutoConfiguration required
RestTemplateBuilder, using it to create the RestTemplate that's used
the security interceptor. Following the modularization,
RestTemplateBuilder is only present when spring-boot-restclient is on
the classpath. In its absence, CloudFoundryActuatorAutoConfiguration
would fail.

This commit address this problem by using RestClient.Builder (and
RestClient) instead of RestTemplateBuilder (and RestTemplate). This
allows CloudFoundryActuatorAutoConfiguration to work without
spring-boot-restclient as RestClient.Builder and RestClient are
provided by spring-web that will always be there in an MVC webapp.

Fixes gh-48826
2026-01-14 15:45:08 +00:00
Andy Wilkinson 9ab0d28ceb Merge branch '4.0.x'
Closes gh-48822 in 4.1.x
Closes gh-48824
2026-01-14 11:27:10 +00:00
Andy Wilkinson e51fb2f8f0 Merge branch '3.5.x' into 4.0.x
Closes gh-48822
Fixes gh-48819
2026-01-14 11:25:01 +00:00
Andy Wilkinson 16c85ef903 Start building against Spring AMQP 4.1.0-M1 snapshots
See gh-48800
2026-01-12 14:46:16 +00:00
Andy Wilkinson c9246cec4f Disable HTTP client's built-in decompression
The built-in decompression support in HttpClient 5.6 breaks
Elasticsearch's Rest5Client as it results in double decompression.
The first decompression is performed by the Apache HTTP client. It
succeeds. The Elasticsearch Rest5Client then sees the
Content-Encoding: gzip header and makes a second attempt to inflate
the data. This fails as it has already been inflated.

Closes gh-48743
2026-01-09 15:28:15 +00:00
Andy Wilkinson 86fe6a316f Upgrade to HttpCore5 5.4
Closes gh-48744
2026-01-09 09:54:21 +00:00
Andy Wilkinson c6cf8ba732 Upgrade to HttpClient5 5.6
Closes gh-48743
2026-01-09 09:54:21 +00:00
Andy Wilkinson 86c17e6343 fixup! Start building against Micrometer 1.17.0-M1 snapshots 2026-01-08 16:46:01 +00:00
Andy Wilkinson b4b860435b Merge branch '4.0.x'
Closes gh-48704
2026-01-08 13:45:45 +00:00
Andy Wilkinson 1d67f86dc5 Merge branch '3.5.x' into 4.0.x
Closes gh-48703
2026-01-08 13:45:21 +00:00
Andy Wilkinson 3d6671d47a Merge branch '4.0.x'
Closes gh-48701
2026-01-08 12:14:50 +00:00
Andy Wilkinson ef1f4e2fa2 Merge branch '4.0.x'
Closes gh-48700
2026-01-08 12:01:09 +00:00
Andy Wilkinson 0ffffee4bf Upgrade to Nullability Plugin 0.0.9
Closes gh-48638
2026-01-08 11:59:51 +00:00
Andy Wilkinson 9bd1a460a1 Correct packaging of test code
Closes gh-48699
2026-01-08 11:43:43 +00:00
Phillip Webb d3bb525bc9 Merge branch '4.0.x'
Closes gh-48696
2026-01-07 17:47:19 -08:00
Phillip Webb 70ce043f80 Bind HttpServiceClientProperties directly
Update `HttpServiceClientProperties` to use direct binding rather than
using `@ConfigurationProperties`. The prevents metadata and IDE issues
and also allows the class API to be simplified.

Closes gh-48616
2026-01-07 17:39:56 -08:00
Andy Wilkinson 86330d8402 Merge branch '4.0.x'
Closes gh-48689
2026-01-07 09:27:15 +00:00
Andy Wilkinson 19be9b648f Remove unnecessary jetty-ee11-servlets dependency
Closes gh-48677
2026-01-07 09:21:30 +00:00
Andy Wilkinson 96865d341d Improve how system requirements config affects Eclipse
See gh-48684
2026-01-07 08:53:05 +00:00
Phillip Webb 7af5e6e244 Merge branch '4.0.x'
Closes gh-48687
2026-01-06 13:37:26 -08:00
Phillip Webb 72aea01732 Make spring-boot-security module optional from spring-boot-cloudfoundry
Fixes gh-48685
2026-01-06 13:36:31 -08:00
Phillip Webb c66ad70311 Merge branch '4.0.x' 2026-01-06 13:24:16 -08:00
Phillip Webb 581f648c3c Fix Assertions static imports
See gh-48630
2026-01-06 13:23:46 -08:00
Phillip Webb dad1ca5e95 Merge branch '4.0.x' 2026-01-06 12:54:30 -08:00
Phillip Webb a4f35688aa Merge branch '3.5.x' into 4.0.x 2026-01-06 12:54:11 -08:00