Commit Graph

4090 Commits

Author SHA1 Message Date
Brian Clozel a04dee67a3 Merge branch '3.2.x' into 3.3.x 2024-09-03 21:12:55 +02:00
Brian Clozel d0c9e0e9e7 List types of OpenTelemetry support in Spring Boot
Closes gh-41227
2024-09-03 21:12:14 +02:00
Andy Wilkinson 41afc6adcf Merge branch '3.3.x'
Closes gh-42104
2024-09-03 15:04:36 +01:00
Andy Wilkinson ea246d378e Merge branch '3.2.x' into 3.3.x
Closes gh-42103
2024-09-03 15:04:22 +01:00
Leszek Jasek 0cd99a7435 Improve "Command-line Completion" section
Replaced deprecated Spring CLI options with the current ones,
improved section related to completion setup for zsh.

See gh-42091
2024-09-03 15:02:46 +01:00
Andy Wilkinson 2f9bc79fff Merge branch '3.3.x'
Closes gh-42096
2024-09-03 10:10:42 +01:00
Andy Wilkinson d2f0b2b090 Correct package statements of Testing section's Kotlin snippets
Closes gh-42094
2024-09-03 10:05:19 +01:00
Scott Frederick e7faca3bbb Add support for Testcontainer Redis
Add support for the official `com.redis:testcontainers-redis` container.

See gh-41450
2024-08-29 19:23:40 -07:00
Andy Wilkinson d756bf4e86 Upgrade build to Gradle 8.10
Closes gh-41980
2024-08-23 12:41:05 +01:00
Moritz Halbritter 0c33768746 Merge branch '3.3.x'
Closes gh-41977
2024-08-21 13:11:20 +02:00
Moritz Halbritter 516c764de0 Merge branch '3.2.x' into 3.3.x
Closes gh-41976
2024-08-21 13:05:36 +02:00
Moritz Halbritter 5ee522598f Explain that enabling virtual threads disables traditional thread pools
Closes gh-41937
2024-08-21 11:58:53 +02:00
Andy Wilkinson 2ecb4ebd49 Ignore non-default candidates in type-based matching
Closes gh-22403
2024-08-20 14:36:12 +01:00
Moritz Halbritter 14f6de0e54 Upgrade to cyclonedx-gradle-plugin 1.10.0
Closes gh-41956
2024-08-20 09:00:51 +02:00
Stéphane Nicoll f3693070ca Merge branch '3.3.x'
Closes gh-41950
2024-08-20 08:43:58 +02:00
Stéphane Nicoll d62a5ac947 Merge branch '3.2.x' into 3.3.x
Closes gh-41949
2024-08-20 08:43:45 +02:00
Stéphane Nicoll 8243c7ba98 Polish "Harmonize web handler code sample"
See gh-41948
2024-08-20 08:41:54 +02:00
Furkan ÖZBEK bfce07894c Harmonize web handler code sample
See gh-41948
2024-08-20 08:40:53 +02:00
Andy Wilkinson 137447f869 Merge branch '3.3.x'
Closes gh-41946
2024-08-19 17:51:48 +01:00
Andy Wilkinson cf9a2f3db7 Merge branch '3.2.x' into 3.3.x
Closes gh-41945
2024-08-19 17:51:34 +01:00
Andy Wilkinson f4b73da657 Document when environment variable property mapping applies
Closes gh-41877
2024-08-19 17:51:11 +01:00
Moritz Halbritter 8665636e88 Fix casing
See gh-41205
2024-08-19 10:57:16 +02:00
Moritz Halbritter fd1472784e Polish "Add SslInfoContributor and SslHealthIndicator"
See gh-41205
2024-08-19 10:41:29 +02:00
Jonatan Ivanov 5e3796e814 Add SslInfoContributor and SslHealthIndicator
See gh-41205
2024-08-19 10:00:00 +02:00
Stéphane Nicoll 71ca952827 Merge branch '3.3.x'
Closes gh-41921
2024-08-19 09:46:34 +02:00
Stéphane Nicoll a19d69e052 Merge branch '3.2.x' into 3.3.x
Closes gh-41920
2024-08-19 09:46:23 +02:00
Christoph Dreis 393ec8ae51 Fix duplicate words
See gh-41916
2024-08-19 09:44:29 +02:00
Scott Frederick add3d87ea1 Support Couchbase authentication using client certificates
Closes gh-41520
2024-08-14 14:40:06 -05:00
Moritz Halbritter c34c0d1927 Merge branch '3.3.x' 2024-08-12 09:23:01 +02:00
Moritz Halbritter fe55ce9357 Improve Dockerfiles example in packaging documentation 2024-08-12 09:20:46 +02:00
Moritz Halbritter 3c55c7e4d0 Merge branch '3.3.x'
Closes gh-41749
2024-08-09 14:21:58 +02:00
Moritz Halbritter c2a782ee28 Merge branch '3.2.x' into 3.3.x
Closes gh-41748
2024-08-09 14:19:02 +02:00
Moritz Halbritter 7386908ce0 Document that username and password are not used when Redis url is set
Closes gh-41231
2024-08-09 14:10:20 +02:00
Stéphane Nicoll 9796d04500 Merge branch '3.3.x' 2024-08-07 17:22:00 +02:00
Stéphane Nicoll 0e20f177a2 Merge branch '3.2.x' into 3.3.x 2024-08-07 17:21:52 +02:00
Stéphane Nicoll 9817201833 Mention that meta-annotations are not supported
See gh-18517
2024-08-07 17:21:33 +02:00
Stéphane Nicoll 8bff866211 Polish
See gh-16199
2024-08-05 14:45:42 +02:00
Stéphane Nicoll 40300908ea Include vendor properties in auto-configured EntityManagerFactoryBuilder
This commit moves the setup of vendor properties (e.g. Hibernate) from
the auto-configured LocalContainerEntityManagerFactoryBean to the
auto-configured EntityManagerFactoryBuilder. This way, custom use of
the latter retains additional auto-configuration logic such as the
naming strategy and DDL mode to use.

Closes gh-15318
2024-08-05 14:10:07 +02:00
Stéphane Nicoll efaebb1351 Document unsupported Freemarker properties with WebFlux
This commit updates the configuration metadata and the reference guide
to mention that certain FreeMarker features are not available with
WebFlux.

This stems mostly from the fact that the WebFlux integration is not
based on a AbstractTemplateView.

Closes gh-11199
2024-08-02 15:06:35 +02:00
Stéphane Nicoll a2fafa112f Add support for customizing FreeMarker variables
This commit updates the auto-configuration to allow custom FreeMarker
variables to be provided programmatically. As these variables are
usually objects, they cannot be specified via properties.

Closes gh-8965
2024-08-02 11:52:27 +02:00
Stéphane Nicoll 477bd7d15a Detect default enum value
This commit improves the configuration metadata annotation processor to
detect a default enum value. The algorithm is best-effort, similarly to
what it already does for well known prefixes (period, duration, etc).

Based on an expression and an identifier, the default value is inferred
if the expression matches the declaration of the property type.

See gh-7562
2024-08-01 15:43:21 +02:00
Phillip Webb 8287cc7610 Merge branch '3.3.x' 2024-07-31 11:37:02 +01:00
Phillip Webb de3744fcd1 Use javadoc macro for more links in adoc files
See gh-41605
2024-07-31 11:33:29 +01:00
Andy Wilkinson 9c4399c76a Merge branch '3.3.x'
Closes gh-41639
2024-07-29 12:50:52 +01:00
Andy Wilkinson 16ba01a363 Merge branch '3.2.x' into 3.3.x
Closes gh-41638
2024-07-29 12:50:26 +01:00
Andy Wilkinson 9f1c4b71aa Fix inconsistency for effect on Actuator of defining security filter
Closes gh-41569
2024-07-29 12:46:20 +01:00
Stéphane Nicoll dabc83338b Polish "Add support for Grafana LGTM stack"
See gh-41551
2024-07-29 10:43:56 +02:00
Eddú Meléndez 9eff627eb2 Add support for Grafana LGTM stack
See gh-41551
2024-07-29 10:33:08 +02:00
Phillip Webb 915f841dc6 Merge branch '3.3.x'
Closes gh-41628
2024-07-26 16:23:23 +01:00
Phillip Webb 60fa9bd04b Merge branch '3.2.x' into 3.3.x
Closes gh-41627
2024-07-26 16:23:09 +01:00
Phillip Webb 1a8e9c14b1 Fix "Use Spring Data repositories" how-to to refer to interfaces
The previous how-to accidentally referenced the `@Repository` annotation
and not the Spring Data `Repository` interface.

Closes gh-41625
2024-07-26 16:20:09 +01:00
Stéphane Nicoll 88448d68b0 Merge branch '3.3.x'
Closes gh-41623
2024-07-26 09:25:55 +02:00
Stéphane Nicoll 687b87f50a Merge branch '3.2.x' into 3.3.x
Closes gh-41622
2024-07-26 09:25:39 +02:00
Tran Ngoc Nhan 13023665dc Fix link to documentation for log4j-spring-boot
See gh-41612
2024-07-26 09:22:34 +02:00
Andy Wilkinson e201b94d4f Merge branch '3.3.x'
Closes gh-41616
2024-07-25 16:17:52 +01:00
Andy Wilkinson c642f6d268 Merge branch '3.2.x' into 3.3.x
Closes gh-41613
2024-07-25 16:16:35 +01:00
Phillip Webb 44dfd1f637 Merge branch '3.3.x'
Closes gh-41615
2024-07-25 15:28:51 +01:00
Phillip Webb 2199a313be Migrate to javadoc asciidoctor macro
Closes gh-41605
2024-07-25 15:25:00 +01:00
Andy Wilkinson 5f666eec5b Reduce warnings reported by Eclipse
Closes gh-41598
2024-07-25 14:55:00 +01:00
Phillip Webb de3b14f2b4 Refine structured logging
Refine structured logging to support `Environment`, `ApplicationPid` and
`ElasticCommonSchemaService` injection. With these updates we are able
to remove the `ApplicationMetadata` class and simplify the parameters
passed to the layout/encoder classes.

Closes gh-41491
2024-07-24 19:06:07 +01:00
Andy Wilkinson 3ef2bcfe82 Merge branch '3.3.x'
Closes gh-41595
2024-07-23 16:21:37 +01:00
Andy Wilkinson 8de72c80c6 Polish "Add hint for new dependencies required for Flyway"
See gh-41574
2024-07-23 16:21:06 +01:00
Jan Mewes 0fa9467ef3 Add hint for new dependencies required for Flyway
See gh-41574
2024-07-23 16:20:59 +01:00
Stéphane Nicoll 282b3bc0a0 Merge branch '3.3.x'
Closes gh-41594
2024-07-23 16:46:25 +02:00
Stéphane Nicoll 53b275d0c7 Merge branch '3.2.x' into 3.3.x
Closes gh-41593
2024-07-23 16:46:16 +02:00
LamTrinh.Dev b469c743e1 Fix link to Flyway reference documentation
See gh-41591
2024-07-23 16:41:44 +02:00
Andy Wilkinson 23b344691d Polish "Support `@Name` with JavaBean-based configuration properties"
See gh-39452
2024-07-23 14:00:20 +01:00
Andy Wilkinson 177a24d6a4 Merge branch '3.3.x'
Closes gh-41586
2024-07-23 09:11:56 +01:00
Andy Wilkinson db4b483811 Merge branch '3.2.x' into 3.3.x
Closes gh-41585
2024-07-23 09:11:16 +01:00
Andy Wilkinson 9bb0c45ddb Add tip about using `@Name` to rename constructor bound property
Closes gh-41577
2024-07-23 09:08:42 +01:00
Andy Wilkinson 46ec3e3a07 Polish "Support service connections for redis-stack and redis-stack-server"
See gh-41327
2024-07-17 11:08:52 +01:00
Eddú Meléndez 2634d0c6b1 Support service connections for redis-stack and redis-stack-server
See gh-41327
2024-07-17 10:54:06 +01:00
Stéphane Nicoll fc2890d1cd Use native connection factory with message listener containers
This commit updates the auto-configuration to use the native connection
factory for configuring message listener containers. Previously, the
connection factory that could have been wrapped in a caching connection
factory was used.

While using a caching connection factory is suitable for sending
messages (i.e. JmsTemplate usage), it isn't for message listeners as
they need to own the connection for local recovery purposes.

Closes gh-39816
2024-07-17 10:41:12 +02:00
Andy Wilkinson 350a70199c Merge branch '3.3.x'
Closes gh-41519
2024-07-16 08:48:05 +01:00
Andy Wilkinson 754e71d265 Merge branch '3.2.x' into 3.3.x
Closes gh-41518
2024-07-16 08:47:49 +01:00
Andy Wilkinson 17d6f90468 Document types to which format properties apply
Closes gh-41482
2024-07-16 08:47:30 +01:00
Andy Wilkinson 80cfd5e981 Merge branch '3.3.x'
Closes gh-41517
2024-07-16 08:45:39 +01:00
Andy Wilkinson 30d34c0c34 Merge branch '3.2.x' into 3.3.x
Closes gh-41516
2024-07-16 08:45:21 +01:00
Andy Wilkinson 6941d0e84b Document that logging.file.path if logging.file.name is set
Closes gh-41351
2024-07-16 08:45:01 +01:00
Moritz Halbritter bf2950c045 Add support for structured logging
Update Logback and Log4j2 integrations to support structured logging.
Support for the ECS and Logstash JSON formats is provided out-of-the-box
and the `StructuredLogFormatter` interface may be used to if further
custom formats need to be supported.

Closes gh-5479

Co-authored-by: Phillip Webb <phil.webb@broadcom.com>
2024-07-15 11:45:41 +01:00
Stéphane Nicoll 4415b4ab1c Polish "Allow NestedConfigurationProperty on getters"
See gh-38844
2024-07-15 10:02:58 +02:00
Brian Clozel c693b2bd8c Add support for webjars-locator-lite
This is a follow-up to spring-projects/spring-framework#27619
This commit adds support for "org.webjars:webjars-locator-lite" for
enabling the statis resources chain.

As of this commit, support for "org.webjars:webjars-locator-core" is
deprecated for obvious performance reasons.

Closes gh-40146
2024-07-12 19:17:17 +02:00
Andy Wilkinson 1cb8be007e Merge pull request #41464 from sdeleuze
* gh-41464:
  Refine CDS how-to guide

Closes gh-41464
2024-07-12 14:04:56 +01:00
Sébastien Deleuze 75e642e396 Refine CDS how-to guide
As explained in gh-41348, the BP_SPRING_AOT_ENABLED flag should
not be promoted as it can't work by design with our current
support when combined with CDS for various use cases and provides
little added value as the same behavior can be achieved by adding
-Dspring.aot.enabled=true to JAVA_TOOL_OPTIONS and
CDS_TRAINING_JAVA_TOOL_OPTIONS.

See gh-41464
2024-07-12 14:04:15 +01:00
Andy Wilkinson cddf92e047 Polish "Deprecate @MockBean and @SpyBean"
See gh-39864
2024-07-12 13:49:11 +01:00
Jakob Wanger 24763940a0 Deprecate @MockBean and @SpyBean
- Deprecate Deprecate @MockBean and @SpyBean in favor of Spring
  Framework 6.2's @MockitoBean and @MockitoSpy
- Migrate usages of @MockBean and @SpyBean to @MockitoBean and
  @MockitoSpy

Signed-off-by: Jakob Wanger <jakobwanger@gmail.com>

See gh-39864
2024-07-12 12:18:01 +01:00
Andy Wilkinson d07fe47102 Merge branch '3.3.x'
Closes gh-41447
2024-07-11 13:09:26 +01:00
Andy Wilkinson 784c8d2df4 Avoid duplicate junit-platform.properties files caused by Kafka
Gradle doesn't support excluding a dependency that's declared with a
classifier. Instead, this commit replaces the test-qualified
kafka-server-common dependency with the plain dependency. The plain
dependency was already present so this is equivalent to excluding
the test-qualified dependency.

Closes gh-41446
2024-07-11 13:08:58 +01:00
Andy Wilkinson 375b3b16a0 Remove APIs that were deprecated for removal in 3.4.0
Closes gh-41435
2024-07-10 13:31:21 +01:00
Moritz Halbritter e3d878cca0 Merge branch '3.3.x'
Closes gh-41322
2024-07-04 16:03:10 +02:00
Moritz Halbritter 2a20ceb3fd Fix CDS link and clarify where and when to run the commands
Closes gh-41321
2024-07-04 16:01:37 +02:00
Stéphane Nicoll 156237227c Migrate MockMvc tests to MockMvcTester
See gh-41198
2024-07-03 15:09:10 +02:00
Stéphane Nicoll e5859aedaf Add auto-configuration for MockMvcTester
This commit adds auto-configuration and documentation for MockMvcTester,
a wrapper of MockMvc that provides AssertJ integration as well as a
fluent API to build requests. The main differences compared to the
regular MockMvc are as follows:

* No need for static imports for building requests and define assertions
* No need to handle unchecked exception as they can be asserted instead
* Support for converting the response body to data types

Closes gh-41198
2024-07-03 15:09:10 +02:00
Moritz Halbritter de001f5af1 Polish "Add standardized property to distinguish a group of applications"
See gh-39957
2024-07-03 11:54:49 +02:00
Jakob Wanger 8ddb77f628 Add standardized property to distinguish a group of applications
This adds a property to provide some indicator that a set of
applications are part of a larger "business application" so that they
can be viewed in metrics, portals, traces and more.

See gh-39957
2024-07-03 11:06:46 +02:00
Scott Frederick 17c5538062 Merge branch '3.3.x' 2024-07-01 11:24:00 -05:00
Scott Frederick 70e14d648d Polish documentation headings
Title case should be used in all headings.
2024-07-01 11:23:41 -05:00
Scott Frederick 28dc9cbb59 Merge branch '3.3.x' 2024-06-28 17:22:14 -05:00
Scott Frederick 03a7f48ac0 Polish documentation for xref hyperlink formatting consistency
This commit improves the consistency of xref link formatting (no
quotes, italics, or other decoration) and uses automatic link
text generation wherever possible.
2024-06-28 17:20:53 -05:00
Scott Frederick 24a8bbd82f Polish use of the term starter in documentation
Use of the term "starter" was sometimes quoted but sometimes was not,
sometimes used proper case and sometimes lowercase. This commit
improves consistency by removing quotes and using lowercase.
2024-06-28 17:19:30 -05:00