Commit Graph
211 Commits
Author SHA1 Message Date
Stéphane Nicoll 5399793faf Reinstate Spock support
Closes gh-48513
2025-12-19 15:31:59 +01:00
Andy Wilkinson dfd41a6b9f Polish "Add LDAPS support to embedded LDAP server"
See gh-48315
2025-12-19 11:26:02 +00:00
Moritz Halbritter 0f999b8d96 Merge branch '4.0.x' 2025-12-19 11:59:36 +01:00
Moritz Halbritter 5575ea19ba Remove explicit dependency on spring-boot-opentelemetry in documentation
See gh-48585
2025-12-19 11:58:18 +01:00
Vedran Pavic 98d843214b Add support for configuring SimpleMessageListenerContainer
This commit introduces a `SimpleJmsListenerContainerFactoryConfigurer`
that can be used to conveniently apply settings provided
by JMS auto-configuration to `SimpleJmsListenerContainerFactory`
instances.

See gh-47716

Signed-off-by: Vedran Pavic <vedran@vedranpavic.com>
2025-12-19 11:42:48 +01:00
Moritz Halbritter f6cbed4a40 Update Tracing section for Spring Boot 4's modularity
Closes gh-48576
2025-12-19 10:54:27 +01:00
Stéphane Nicoll 3e689881f2 Polish "Harmonize Kotlin example for HTTP Service client support"
See gh-48577
2025-12-18 15:07:39 +01:00
jwalter 423373ba06 Harmonize Kotlin example for HTTP Service client support
See gh-48577

Signed-off-by: jwalter <joakim.waltersson@gmail.com>
2025-12-18 15:07:39 +01:00
Brian Clozel f61ac29f3f Document HttpMessageConverters detection changes
This commit updates the reference documentation to better reflect
changes applied in gh-48310. As of Spring Boot 4.0.1,
`HttpMessageConverter` beans are all considered as "custom" converters
and will be set ahead of the converters list in the auto-configuration
support.

For more specific changes, developers should contribute
`ClientHttpMessageConvertersCustomizer` or
`ServerHttpMessageConvertersCustomizer` beans to better reflect their
intent: should the converter be configured for client, server or both?
How should this converter be used?

Previously, Spring Boot was relying on heuristics but they would cause
issues for server-only converters, or for specific configuration that
were not meant to replace the default converter for a given media type.

Closes gh-48574
2025-12-18 14:56:38 +01:00
Stéphane Nicoll e8e880b8de Merge branch '3.5.x'
Closes gh-48534
2025-12-15 15:43:26 +01:00
Stéphane Nicoll 21aedaad3c Refine behavior of @AutoConfigureCache
Closes gh-48522
2025-12-15 15:25:09 +01:00
Stéphane Nicoll 134ebe42a7 Merge branch '3.5.x'
Closes gh-48532
2025-12-15 15:15:11 +01:00
Stéphane Nicoll 10e2f34ecc Merge branch '3.5.x'
Closes gh-48527
2025-12-15 12:04:24 +01:00
Stéphane Nicoll 17d8929fac Merge branch '3.5.x' 2025-12-08 12:42:42 +01:00
Stéphane Nicoll 4bc8a0ab64 Merge branch '3.5.x'
Closes gh-48449
2025-12-08 12:31:32 +01:00
Phillip Webb ba032dba21 Fix links to GitHub source files
Closes gh-48394
2025-12-05 10:09:38 -08:00
Stéphane Nicoll 1c637d8692 Use correct product names for IntelliJ IDEA 2025-12-02 16:59:03 +01:00
Andy Wilkinson c1e4375049 Merge branch '3.5.x'
Closes gh-48360
2025-12-01 12:01:30 +00:00
Hirotaka Kawata 962ecfcf1d Change annotation from ConfigurationPropertiesScan to ConfigurationPropertiesSource
See gh-48357

Signed-off-by: Hirotaka Kawata <kawata.hirotaka@moneyforward.co.jp>
2025-12-01 11:43:19 +00:00
Stéphane Nicoll 811ddcd1b8 Merge branch '3.5.x'
Closes gh-48336
2025-11-28 16:05:30 +01:00
Stéphane Nicoll c63dbe7eb8 Document LocalTestWebServer
Closes gh-48333
2025-11-28 15:14:54 +01:00
Stéphane Nicoll 542c21869e Review "Creating Your Own Starter" section
Closes gh-48317
2025-11-28 11:00:59 +01:00
Andy Wilkinson b5703eaa4c Merge branch '3.5.x'
Closes gh-48300
2025-11-26 12:43:51 +00:00
Antoine Rey 53a765ac5c Update references for RestTemplateBuilder and Customizer
Starting from Spring Boot 4, the RestTemplateBuilder and
RestTemplateCustomizer classes have been moved from the
org.springframework.boot.web.client package to the
org.springframework.boot.restclient package. This commit updates
the javadoc links in the reference documentation to match

Signed-off-by: Antoine Rey <antoine.rey@free.fr>

See gh-48295
2025-11-26 10:56:29 +00:00
Andy Wilkinson 3e82ede609 Require spring-boot-restclient dependency to use TestRestTemplate
Previously, spring-boot-restclient was a required dependency of
spring-boot-resttestclient. This had the unwanted side-effect of
increasing the risk of the test classpath enabling auto-configuration
for RestClient.Builder when it was main code that needed such a bean.
This could lead to integration tests passing but the application
itself failing to start when its run through its main method.

This commit makes spring-boot-restclient an optional dependency of
spring-boot-resttestclient. As a result, a dependency on
spring-boot-resttestclient is no longer sufficient to auto-configure
a RestClient.Builder bean, although it is still sufficient to
auto-configure a RestTestClient bean.

Those that wish to use TestRestTemplate rather than migrating to
RestTestClient will now have to add a dependency on
spring-boot-restclient. This makes it presence more obvious. It now
has to be declared directly rather than being somewhat hidden due to
being pulled in transitively. The hope is that this will reduce the
chances of the dependency being accidentially on the test classpath
when main code requires it to be on the runtime classpath.

Fixes gh-48253
2025-11-25 14:38:33 +00:00
Stéphane Nicoll 0e56cd08ea Fix inconsistency in Graceful Shutdown section
See gh-46917
Closes gh-48284
2025-11-25 11:19:19 +01:00
Stéphane Nicoll 0cc2e57461 Polish "Document that spring-boot-h2console is required"
We can simplify the original proposal as spring-boot-h2console brings
H2 if needed.

See gh-48278
2025-11-25 09:51:21 +01:00
Igor 5ea290ae11 Document that spring-boot-h2console is required
See gh-48278

Signed-off-by: Igor <i.y.seleznov@gmail.com>
2025-11-25 09:50:56 +01:00
Andy Wilkinson 635e331587 Mention using AutoConfigureRestTestClient in a WebMvcTest
Closes gh-47948
2025-11-24 14:15:38 +00:00
Andy Wilkinson 1761ff0ff4 Clarify Batch docs on the need for a DataSource and DB-based repository
Closes gh-48233
2025-11-24 11:41:17 +00:00
Andy Wilkinson 4d3e374ad1 Merge branch '3.5.x'
Closes gh-48266
2025-11-24 11:30:45 +00:00
Andy Wilkinson 04ba4120a4 Document need for JdbcDialect bean with Sring Data JDBC and AOT
Closes gh-48240
2025-11-24 10:55:56 +00:00
Andy Wilkinson 4b8db9b630 Fix problems with auto-configuration architecture checks
Closes gh-48216
2025-11-21 16:57:56 +00:00
Andy Wilkinson 40453e76f0 Merge branch '3.5.x'
Closes gh-48228
2025-11-21 16:47:00 +00:00
Stéphane Nicoll bd5264e28e Merge branch '3.5.x'
Closes gh-48219
2025-11-21 13:02:14 +01:00
Stéphane Nicoll 1e96c6cd02 Merge branch '3.5.x'
Closes gh-48218
2025-11-21 11:27:56 +01:00
Andy Wilkinson 3becdc7d47 Move server.error properties to spring.web.error
Closes gh-48201
2025-11-20 11:55:23 +00:00
Phillip Webb 2685f4bf29 Change tomcat and jetty runtime modules to starters
Change `spring-boot-tomcat-runtime` and `spring-boot-jetty-runtime`
into starter POMs and reduce the number of dependencies needed for
`spring-boot-tomcat` and `spring-boot-jetty`.

The runtime starters provide only the jars required to run the
embedded server along with the module jar itself (excluding transitive
dependencies) and `spring-boot-webserver` (excluding transitive
dependencies).

The build setup required for an executable jar is slightly different
between Maven and Gradle. For Maven, the regular module is put in the
`provided` scope. For Gradle, the regular module remains in main
configuration and the runtime jar is put in the `providedRuntime`
configuration. The reference documentation has been updated to
show how to configure things if starters are being used.

Manual testing has been performed to ensure that wars build with Maven
and Gradle work with both Tomcat and Jetty in both deployed and
`java -jar` modes.

Closes gh-48175
2025-11-19 21:59:03 -08:00
Stéphane Nicoll ae4bf3e501 Disable Elasticsearch client's sniffer by default
This commit switches the auto-configuration of Elasticsearch to not
contribute a client's sniffer by default.

This matches the best practices as describe in
https://www.elastic.co/blog/elasticsearch-sniffing-best-practices-what-when-why-how

Closes gh-48155
2025-11-18 23:03:25 +01:00
Stéphane Nicoll 15bf80d3ff Polish contribution
See gh-48170
2025-11-18 16:22:11 +01:00
Vedran Pavic 802dacb007 Mention support for detecting AWS ECS in "Deploying to the Cloud"
See gh-48170

Signed-off-by: Vedran Pavic <vedran@vedranpavic.com>
2025-11-18 16:08:03 +01:00
Stéphane Nicoll 7e9f5ebd96 Merge branch '3.5.x'
Closes gh-48163
2025-11-18 11:06:06 +01:00
Stéphane Nicoll c6c649f644 Polish "Elasticsearch starter should depend on elasticsearch-java"
See gh-48141
2025-11-15 10:49:20 +01:00
Andy Wilkinson 3a913ef480 Merge branch '3.5.x'
Closes gh-48131
2025-11-14 08:08:08 +00:00
Stéphane Nicoll 3d23261f87 Merge branch '3.5.x'
Closes gh-48122
2025-11-13 14:55:19 +01:00
Andy Wilkinson bb0437c0e1 Correct names of isolated Json/ObjectMapper properties
Closes gh-48116
2025-11-13 12:00:19 +00:00
Andy Wilkinson 62a1dd6ed1 Merge branch '3.5.x'
Closes gh-48115
2025-11-13 11:29:47 +00:00
Andy Wilkinson f1aae5c7fc Merge branch '3.5.x'
Closes gh-48112
2025-11-13 10:56:53 +00:00
Andy Wilkinson 9cc18130e6 Merge branch '3.5.x'
Closes gh-48110
2025-11-13 10:19:47 +00:00
Andy Wilkinson 5699915383 Rename module for Kotlinx Serialization JSON support
Closes gh-48076
2025-11-12 17:34:28 +00:00