Commit Graph
809 Commits
Author SHA1 Message Date
Andy Wilkinson 64969bfea8 Ensure that mock infra is defined before Security auto-config
We need to ensure that MockMvcAutoConfiguration has defined its
DispatcherServletPath bean before the condition that checks for it in
ServletWebSecurityAutoConfiguration is evaluated.

Ideally, ServletWebSecurityAutoConfiguration in spring-boot-security
would not know about test-specific code but there's no easy way to
establish the required ordering without this link. One alternative
option is an auto-configuration class in spring-boot-security-test
that's purely for ordering purposes. This was rejected as it would
introduce new public API (as we enforce that all auto-configurations
are public).

Fixes gh-49854
2026-04-09 08:42:36 +01:00
Andy Wilkinson edcc937add Align FAIL_ON_UNKNOWN_PROPERTIES with Spring Boot 3.x
In Spring Boot 3.x, Jackson2ObjectMapperBuilder disabled
FAIL_ON_UNKNOWN_PROPERTIES. This commit aligns the behavior of
use-jackson2-defaults with this.

This commit also ensures that DEFAULT_VIEW_INCLUSION is disabled. It
was enabled by default in Jackson 2 and then disabled by
Jackson2ObjectMapperBuilder. At the time of writing, Jackson 3's
configureForJackson2() method does not enable DEFAULT_VIEW_INCLUSION.
Should that ever be corrected/changed in Jackson 3, this additional
change in this commit ensures that the Boot will continue to have the
desired default.

Fixes gh-49951
2026-04-08 08:38:32 +01:00
Stéphane Nicoll 308c4317e0 Merge branch '3.5.x' into 4.0.x 2026-04-08 07:31:30 +02:00
Stéphane Nicoll d7a475fcd9 Merge branch '3.5.x' into 4.0.x
Closes gh-49946
2026-04-07 17:33:38 +02:00
Brian Clozel 5c506b148f Merge branch '3.5.x' into 4.0.x
Closes gh-49943
2026-04-07 17:05:52 +02:00
Stéphane Nicoll d93a3f21e9 Polish 2026-04-07 14:50:30 +02:00
Brian Clozel 3aad18a774 Merge branch '3.5.x' into 4.0.x 2026-04-03 10:56:16 +02:00
Hyeongjun Cho 481efb20cd Fix typo in JdbcSessionAutoConfiguration Javadoc
See gh-49873

Signed-off-by: Hyeongjun Cho <ryuu.public@gmail.com>
2026-04-03 08:40:23 +02:00
Moritz Halbritter d437c11761 Merge branch '3.5.x' into 4.0.x
Closes gh-49869
2026-04-02 11:12:20 +02:00
Moritz Halbritter 4f47202910 Merge branch '3.5.x' into 4.0.x
Closes gh-49866
2026-04-02 10:46:26 +02:00
Andy Wilkinson 417107df7a Remove unused dependency on spring-boot-restclient-test
Closes gh-49855
2026-03-31 13:22:50 +01:00
Stéphane Nicoll 9105b64025 Merge branch '3.5.x' into 4.0.x 2026-03-26 16:07:44 +01:00
Stéphane Nicoll 30a3fac242 Merge branch '3.5.x' into 4.0.x
Closes gh-49798
2026-03-26 11:25:57 +01:00
Stéphane Nicoll 51ffdc6cd3 Merge branch '3.5.x' into 4.0.x
Closes gh-49782
2026-03-25 14:26:27 +01:00
Andy Wilkinson 96eea1812d Fix WebSocketMessagingAutoConfiguration without a JsonMapper bean
Previously, if Jackson was on the classpath but no JsonMapper bean
was present, the app would fail to start. This commit updates
the auto-configuration so that the parts that require a JsonMapper
bean back of when no such bean is present.

The sample problem also exists with Jackson 2 and an ObjectMapper
bean. This commit also corrects that.

Fixes gh-49749
2026-03-25 11:55:39 +00:00
Andy Wilkinson 9851e67079 Merge branch '3.5.x' into 4.0.x
Closes gh-49753
2026-03-25 11:24:09 +00:00
Stéphane Nicoll 6b53de850d Merge branch '3.5.x' into 4.0.x
Closes gh-49747
2026-03-25 07:34:12 +01:00
Yanming Zhou 664467563b Remove empty package "org.springframework.boot.actuate.data"
See gh-49741

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2026-03-24 19:02:20 -07:00
Phillip Webb e8ec285fd5 Merge branch '3.5.x' into 4.0.x
Closes gh-49736
2026-03-24 17:39:33 -07:00
Stéphane Nicoll a96bfd6a0b Merge branch '3.5.x' into 4.0.x
Closes gh-49727
2026-03-24 10:29:30 +01:00
Andy Wilkinson f988fe93e0 Merge branch '3.5.x' into 4.0.x 2026-03-23 14:50:29 +00:00
Brian Clozel 86274962f4 Merge branch '3.5.x' into 4.0.x
Closes gh-49706
2026-03-23 11:18:25 +01:00
Daeho Kwon 0b45618cb5 Add @ConditionalOnWebApplication to NettyReactiveWebServerAutoConfiguration
See gh-49695

Signed-off-by: Daeho Kwon <trewq231@naver.com>
2026-03-21 14:26:23 -07:00
Stéphane Nicoll 25b6de94d5 Fix formatting 2026-03-20 10:29:31 +01:00
Stéphane Nicoll d8ea797aab Merge branch '3.5.x' into 4.0.x
Closes gh-49672
2026-03-20 10:08:40 +01:00
Brian Clozel 26edf79084 Merge branch '3.5.x' into 4.0.x 2026-03-19 09:40:05 +01:00
Brian Clozel a6d8c48e13 Merge branch '3.5.x' into 4.0.x
Closes gh-49649
2026-03-18 17:38:12 +01:00
Brian Clozel 1ead08b9d8 Merge branch '3.5.x' into 4.0.x
Closes gh-49646
2026-03-18 16:45:57 +01:00
Andy Wilkinson 797253a447 Merge branch '3.5.x' into 4.0.x
Closes gh-49617
2026-03-16 18:00:39 +00:00
Andy Wilkinson 76290f7871 Remove unused org.springframework.boot.docker-test plugin
Closes gh-49598
2026-03-13 16:38:01 +00:00
Brian Clozel ed8cba80b6 Merge branch '3.5.x' into 4.0.x
Closes gh-49593
2026-03-13 16:48:49 +01:00
Andy Wilkinson f0aff3aa3c Polish "Add failure analysis for missing auto-configured MailSender"
See gh-49582

Signed-off-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
2026-03-13 12:24:25 +00:00
MJY ffb36cb5ed Add failure analysis for missing auto-configured MailSender
Signed-off-by: MJY <jmoon0227@gmail.com>

See gh-49582
2026-03-13 12:02:08 +00:00
Moritz Halbritter 2b6559ccd6 Deprecate ZipkinWithOpenTelemetryTracingAutoConfiguration
See gh-49453
2026-03-11 10:30:34 +01:00
Andy Wilkinson 3977d878d9 Merge branch '3.5.x' into 4.0.x
Closes gh-49522
2026-03-09 11:23:20 +00:00
Brian Clozel e487a6b499 Improve EndpointRequest matcher documentation
Prior to this commit, `EndpointRequest` exposed factory methods for
creating security matchers in the context of Actuator endpoints. This is
using the popular pattern matching approach for security matchers.
Such matchers are not as focused as method-level security and will match
the endpoint path itself (`"actuator/endpoint"`) as well as everything
beneath it (`"actuator/endpoint/**"`).

This commit improves the Javadoc and reference documentation to make
this behavior more explicit.

Closes gh-49520
2026-03-09 11:25:39 +01:00
Andy Wilkinson f80e7fe67e Merge branch '3.5.x' into 4.0.x
See gh-49385
2026-03-06 18:08:55 +00:00
Stéphane Nicoll 09ed319596 Merge branch '3.5.x' into 4.0.x 2026-03-05 09:23:11 +01:00
Stéphane Nicoll d15805f8f6 Merge branch '3.5.x' into 4.0.x
Closes gh-49387
2026-03-03 14:12:13 +01:00
Stéphane Nicoll 63c7099e84 Merge branch '3.5.x' into 4.0.x
Closes gh-49385
2026-03-03 13:38:43 +01:00
Andy Wilkinson 42466e4776 Allow Customizer<HttpSecurity> beans to refine auth server config
Fixes gh-49367
2026-03-03 09:01:17 +00:00
Andy Wilkinson 23903925c5 Merge branch '3.5.x' into 4.0.x
Closes gh-49344
2026-02-27 12:13:03 +00:00
Andy Wilkinson 7f7532a0b9 Remove duplicate spring-web dependency
Closes gh-49338
2026-02-27 09:34:34 +00:00
Andy Wilkinson 6c8cd183bd Merge branch '3.5.x' into 4.0.x
Closes gh-49327
2026-02-26 09:38:10 +00:00
Andy Wilkinson 20ff2b7ff1 Register reflection hints for HTTP service client property binding
Fixes gh-49274
2026-02-25 15:12:55 +00:00
Andy Wilkinson 75ccf2cdba Merge branch '3.5.x' into 4.0.x
Closes gh-49314
2026-02-24 16:26:50 +00:00
Andy Wilkinson e808d7a7de Align server.tomcat.max-part-count default with Tomcat's default
Fixes gh-49311
2026-02-24 15:32:50 +00:00
Brian Clozel dd51ece7ac Merge branch '3.5.x' into 4.0.x
Closes gh-49302
2026-02-23 18:34:48 +01:00
Phillip Webb 1d054e8a12 Ensure HttpMessageConverters are configured before RestClients
Update `RestClientAutoConfiguration` to ensure that it applies after
`HttpMessageConvertersAutoConfiguration`.

Prior to this commit, the `HttpMessageConvertersRestClientCustomizer`
bean might not get created due to the `@ConditionalOnBean` guard not
finding any `ClientHttpMessageConvertersCustomizer` beans.

Since the issue is surprising hard to replicate in a unit test, a new
smoke test has been added to ensure the problem doesn't return.

Fixes gh-49223
2026-02-17 22:26:02 -08:00
Phillip Webb 362b3e3f20 Polish 2026-02-17 20:55:20 -08:00