Commit Graph

3472 Commits (3c12f39adb1cb3cc6a53c80ffe477f3ccb0752cc)

Author SHA1 Message Date
Andy Wilkinson d7da2d9eb2 Merge branch '3.0.x' into 3.1.x
Closes gh-36139
1 year ago
Andy Wilkinson 66aa55b65d Merge branch '2.7.x' into 3.0.x
Closes gh-36138
1 year ago
JuHyeong Ahn dbdb4d4e8d Fix typo in Using R2DBC
See gh-36019
1 year ago
Moritz Halbritter b655523ef9 Merge branch '3.1.x'
Closes gh-36132
1 year ago
Moritz Halbritter 3d15b02441 Merge branch '3.0.x' into 3.1.x
Closes gh-36131
1 year ago
Moritz Halbritter 606063589f Document trace propagation with RestTemplate and WebClient
Closes gh-34053
1 year ago
Moritz Halbritter cff26d9843 Merge branch '3.1.x'
Closes gh-36113
1 year ago
Moritz Halbritter 20321b5685 Merge branch '3.0.x' into 3.1.x
Closes gh-36112
1 year ago
Moritz Halbritter 2b398827de Add "baggage" section to tracing docs
Closes gh-34977
1 year ago
Scott Frederick 67725d4781 Merge branch '3.1.x'
Closes gh-36052
1 year ago
James Stansell ea41a22284 Fix typo in docker compose service connections note
See gh-36016
1 year ago
Jonatan Ivanov 228b8eb8e4
Polish log correlation docs
Docs related to gh-33280 (log correlation) and
gh-35593 (application name in each log line) need some polishing:
- Fix project names
- Show how to avoid having the application name duplicated in logs
- Call out that a trailing space is needed in the correlation pattern

Closes gh-36035
See gh-33280
See gh-35593
1 year ago
Phillip Webb 493777d3c9 Include the application name on each log line when it is available
Update Logback and Log4J2 so that they include the application name on
each log line. If `spring.application.name` had not been set, or if
`logging.include-application-name` is `false` then the name is not
logged.

Closes gh-35593
1 year ago
Jonatan Ivanov c1b295fd71 Log correlation IDs when Micrometer tracing is being used
Add support for logging correlation IDs with Logback or Log4J2 whenever
Micrometer tracing is being used.

The `LoggingSystemProperties` class now accepts a defualt value resolver
which will be used whenever a value isn't in the environment. The
`AbstractLoggingSystem` provides a resolver that supports the
`logging.pattern.correlation` property and will return a value whenever
`LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY` is set.

Using `LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY` allows us to
provide a consistent width for the correlation ID, even when it's
missing from the MDC.

The exact correlation pattern returned will depend on the `LoggingSytem`
implementation. Currently Logback and Log4J2 are supported and both
make use of a custom converter which delegates to a new
`CorrelationIdFormatter` class.

Closes gh-33280
1 year ago
Phillip Webb 3a796aedea Merge branch '3.1.x' 1 year ago
Phillip Webb 31f218c4e0 Merge branch '3.0.x' into 3.1.x 1 year ago
Phillip Webb 9db3c5a2f7 Polish 1 year ago
Andy Wilkinson 68aec97ee7 Merge branch '3.1.x' 1 year ago
Andy Wilkinson 5b69580d5d Merge branch '3.0.x' into 3.1.x
Closes gh-36004
1 year ago
Andy Wilkinson f584d6dbd9 Replace `@EnableBatchProcessing` in slice test examples
Using `@EnableBatchProcessing` is no longer necessary to enable
Batch's auto-configuration so it's no longer a good example when
discussing sliced tests and user configuration.

This commit replaces `@EnableBatchProcessing` with an alternative
annotation, `@EnableMongoAuditing` and updates the accompanying
text.

Closes gh-33435
1 year ago
Andy Wilkinson 1f9ce508f7 Upgrade to SnakeYAML 2.0
Closes gh-35982
1 year ago
Phillip Webb 23eb7ec1f8 Merge branch '3.1.x' 1 year ago
Phillip Webb 5d6a507142 Merge branch '3.0.x' into 3.1.x 1 year ago
Phillip Webb 48e13af8c4 Merge branch '2.7.x' into 3.0.x 1 year ago
Jonatan Ivanov 85934c3919
Merge branch '3.1.x'
Closes gh-35930
1 year ago
Johnny Lim 06157837e5
Polish
See gh-35872
1 year ago
Andy Wilkinson 740815da03 Merge branch '3.1.x' 1 year ago
Andy Wilkinson 251b5f2d0f Merge branch '3.0.x' into 3.1.x
Closes gh-35909
1 year ago
Andy Wilkinson a5981a4dac Merge branch '2.7.x' into 3.0.x
Closes gh-35908
1 year ago
Andy Wilkinson 9feb84e234 Add DynmicPropertySource to ordered list of property sources
Closes gh-32901
1 year ago
Moritz Halbritter c73315b4a3 Add property to prevent observations starting with a prefix
For example, setting management.observations.enable.denied.prefix=false
will prevent all observations starting with 'denied.prefix'

Closes gh-34802
1 year ago
Moritz Halbritter 491e12ab5e Add property to disable Spring Security observations
Setting 'management.observations.spring-security.enabled' installs an
ObservationPredicate, which prevents all observations starting with
'spring.security.' to be created.

Closes gh-34802
1 year ago
Moritz Halbritter 6eede829d2 Merge branch '3.1.x' 1 year ago
Sungchan Cho 96d5f8641c Fix typo in Docker Compose documentation
See gh-35818
1 year ago
Moritz Halbritter 5b06224af5 Add property for common key/values on observations
- Deprecates 'management.metrics.tags.*'

Closes gh-33241
1 year ago
Moritz Halbritter 2e37c0da18 Merge branch '3.0.x'
Closes gh-35769
1 year ago
Moritz Halbritter a9b4e9327c Merge branch '2.7.x' into 3.0.x
Closes gh-35768
1 year ago
twobiers 0dbc0fcf91 Move property notes up to external configuration section
See gh-35662
1 year ago
Moritz Halbritter 0cf93f1aa4 Merge branch '3.0.x'
Closes gh-35767
1 year ago
Steve Riesenberg ba9f92fa86 Improve OAuth2 Client section of docs
* Add an OpenID Connect login client example
* Update redirect-uri examples to match Security docs and not require
  any customization
* Update client-authentication-method for Spring Security 6 usage
* Update provider configuration example to align with Spring
  Authorization Server
* Format Java DSL according to Spring Security docs
* Use Kotlin DSL
* Update redirection endpoint base uri example to use ant pattern

See gh-35679
1 year ago
Phillip Webb 1669b81af7 Add 'fromApplication' and 'with' Kotlin extension functions
Update `SpringApplicationExtensions.kt` with `fromApplication` and
`with` functions that make `SpringApplication.from(...)` easier to use
with Kotlin.

Fixes gh-35756
1 year ago
Yanming Zhou e8659da59b Fix error in SSL bundle documentation
See gh-35665
1 year ago
Moritz Halbritter eb9077df86 Document how to customize the JDBC parameters when using Docker Compose
Closes gh-35636
2 years ago
Andy Wilkinson 6a74f63143 Merge branch '3.0.x'
Closes gh-35634
2 years ago
Andy Wilkinson a9f89a1e3c Merge branch '2.7.x' into 3.0.x
Closes gh-35633
2 years ago
Andy Wilkinson f452a86175 Polish "Document audience support in Oauth2 resource server"
See gh-35286
2 years ago
Bikash Adhikari 13c5c6efb1 Document audience support in Oauth2 resource server
See gh-35286
2 years ago
Moritz Halbritter b82e7a72b1 Move @Testcontainers before @SpringBootTest in documentation
Closes gh-35572
2 years ago
Stephane Nicoll 9643dbeed2 Merge branch '3.0.x'
Closes gh-35590
2 years ago
Christoph Dreis b2b5728995 Remove unnecessary exclude from spring-restdocs-mockmvc
See gh-35568
2 years ago
Stephane Nicoll 7a9bb55fdf Merge branch '3.0.x'
Closes gh-35589
2 years ago
Phillip Webb 060581d078 Remove pluggable docker compose ReadinessCheck
Remove pluggable `ReadinessCheck` interface and only use the
`TcpConnectServiceReadinessCheck` implementation for now. We
may re-introduce pluggable checks in a future version.

See gh-35544
2 years ago
Andy Wilkinson 1097164a0e Merge branch '3.0.x'
Closes gh-35457
2 years ago
Andy Wilkinson aabb164892 Merge branch '2.7.x' into 3.0.x
Closes gh-35456
2 years ago
Andy Wilkinson d66563d544 Polish "Improve formatting of Kotlin permitAll example"
See gh-35454
2 years ago
Junsu Park 11a1de1e64 Improve formatting of Kotlin permitAll example
See gh-35454
2 years ago
Phillip Webb ae90add7c7 Polish 2 years ago
Sébastien Deleuze becff01db1 Improve Kotlin Testcontainers samples
Make those code samples more idiomatic.

See gh-35446
2 years ago
Scott Frederick 271cbb76c1 Improve documentation for including Docker Compose support in a build
Closes gh-35384
2 years ago
Johnny Lim ff9fd1abeb Polish
See gh-35185
2 years ago
Yanming Zhou 1cddb2a55f Fix typo
See gh-35369
2 years ago
Moritz Halbritter 1504e3043d Document devtools when using testcontainers at dev time
See gh-35200
2 years ago
Moritz Halbritter afa929cd6b Polish documentation 2 years ago
Moritz Halbritter 4d14d0e437 Merge branch '3.0.x'
Closes gh-35321
2 years ago
Moritz Halbritter 8a14f6d017 Clarify conditional support when using AOT
Closes gh-35262
2 years ago
Moritz Halbritter c4deae3906 Document that Spring Boot by default calls 'docker compose stop' 2 years ago
Andy Wilkinson 4f9616c2f9 Change DockerComposeProperties shut down default to stop
Closes gh-35239
2 years ago
Moritz Halbritter 243b337954 Remove copyright from the anchor-rewrite.properties 2 years ago
Moritz Halbritter 46fedfc4ef Move JAR unpacking section and add AOT on JVM section
Closes gh-32905
2 years ago
Moritz Halbritter bdca30e85b Polish 2 years ago
Moritz Halbritter 71f4247340 Improve headings
See gh-32779
2 years ago
Moritz Halbritter 56b8e419be Update getting started with alternative gradle instructions
Closes gh-32779
2 years ago
Eddú Meléndez ad4f6ffeb7 Add service connection from Testcontainers Zipkin
See gh-35107
2 years ago
Phillip Webb 8427e813af Support import of idomatic testcontainer declaration classes
Add an `@ImportTestcontainers` annotation which can be used to import
idomatic testcontainer declaration classes.

Closes gh-35245
2 years ago
Phillip Webb 26566d4a30 Allow testcontainer beans to also contribute properties
Allow `Container` bean definitions to inject a `DynamicPropertyRegistry`
so that they can contribute environment properties.

Closes gh-35201
2 years ago
Phillip Webb a890323758 Merge branch '3.0.x' 2 years ago
Scott Frederick d913472919 Add Kotlin samples and polish SSL bundle documentation
Closes gh-35105
2 years ago
Andy Wilkinson d7da77bda8 Remove support for service connections to InfluxDB
Closes gh-35189
2 years ago
Scott Frederick 226c3005d4 Add SSL bundle support to Redis auto-configuration
Update Redis auto-configuration with Lettuce and Jedis drivers to
allow SSL configuration with an SSL bundle.

Closes gh-34815
2 years ago
Andy Wilkinson 8bbe894665 Add Docker Compose service connection support for Oracle using JDBC
Closes gh-35145
2 years ago
Andy Wilkinson 1e785e81f8 Add Docker Compose support for Oracle Database using R2DBC
Closes gh-35143
2 years ago
Andy Wilkinson b5178afa21 Add Docker Compose support for MS SQL Server using JDBC
Closes gh-35146
2 years ago
Scott Frederick 43b42eca49 Add Docker Compose service connection support for Cassandra
Closes gh-35136
2 years ago
Andy Wilkinson dee5217cf0 Add Docker Compose support for MS SQL Server using R2DBC
Closes gh-35144
2 years ago
Phillip Webb 0f032c290a Allow for predicate based checking of image names
Update `DockerComposeConnectionDetailsFactory` to accept a `Predicate`
based check to determine if the source should be accepted.

The existing name based checks have also been improved to allow names
outside of official docker images. The `ImageReference` and `ImageName`
classes have been mainly copied from
`org.springframework.boot.buildpack.platform.docker.type`.

Closes gh-35154
2 years ago
Stephane Nicoll 363dc9368d Merge branch '3.0.x'
Closes gh-35130
2 years ago
Stephane Nicoll 7f0402f869 Merge branch '2.7.x' into 3.0.x
Closes gh-35129
2 years ago
Ivan Dimitrov f4db73ead9 Harmonize references to application.yaml files in reference docs
See gh-34628
2 years ago
Lukasz Jernas d38a68ebcd Fix typo in testing docs
See gh-35128
2 years ago
Phillip Webb a0b854024b Add a 'Docker Compose Support' section to the reference docs
Update the reference documentation with details about the recently
introduced Docker Compose Support.

Closes gh-35026
2 years ago
Phillip Webb e19aa81813 Polish formatting 2 years ago
Phillip Webb 6ea2547de4 Add SSL bundle support to WebClient auto-configuration
Introduce `WebClientSsl` interface and auto-configuration to allow a
WebClient builder to have custom SSL configuration applied.

The previous `ClientHttpConnectorConfiguration` has been been changed
to now create `ClientHttpConnectorFactory` instances which can be used
directly or by `AutoConfiguredWebClientSsl`.

Closes gh-18556
2 years ago
Scott Frederick b6befd133c Add SSL bundle support to RestTemplateBuilder auto-configuration
Update RestTemplateBuilder auto-configuration so that an SSL can be
configured via an SSL bundle.

Closes gh-34810
2 years ago
Scott Frederick fd5fd1491a Add SSL bundle support to MongoDB auto-configuration
Update MongoDB auto-configuration so that an SSL can be configured
via an SSL bundle.

Closes gh-35042
2 years ago
Scott Frederick 1618aa2dac Add SSL bundle support to Couchbase auto-configuration
Update Couchbase auto-configuration so that an SSL can be configured
via an SSL bundle.

Closes gh-34811
2 years ago
Scott Frederick 682457377a Add SSL bundle support to Cassandra auto-configuration
Update Cassandra auto-configuration so that an SSL can be configured
via an SSL bundle.

Closes gh-25602
2 years ago
Scott Frederick a03f857059 Document update SSL support
Add a new SSL section to the reference documentation to describe SSL
bundles.

See gh-34814
2 years ago
Andy Wilkinson c55d398f95 Validate health group includes and excludes
Closes gh-34360
2 years ago
Andy Wilkinson f2e5eab09c Polish does for reporting traces using OTLP
See gh-34508
2 years ago
Jonatan Ivanov ceaafeca0b Add auto-configuration for OTLP span exporter
With these changes an OTLP HTTP/protobuf exporter is auto-configured
if opentelemetry-exporter-otlp is on the classpath.

See gh-34508
2 years ago
Stephane Nicoll a323bd90a8 Polish "Reintroduce support for ActiveMQ"
See gh-35048
2 years ago
Martin BENDA 3e9908a797 Reintroduce support for ActiveMQ
See gh-35048
2 years ago
Andy Wilkinson 0da209db08 Polish "Add support for Oracle R2DBC Service Connection"
See gh-34852
2 years ago
Andy Wilkinson 98d077c74c Polish "Add service connection from Testcontainers Redpanda"
See gh-34780
2 years ago
Andy Wilkinson ce1c3e52d7 Merge branch '3.0.x'
Closes gh-35040
2 years ago
Andy Wilkinson d30f0575f0 Polish "Improve documentation of tracing deps and config props"
See gh-34991
2 years ago
Robert K dfe60cb2d3 Improve documentation of tracing deps and config props
See gh-34991
2 years ago
Eddú Meléndez aea5b77d1e Add missing containers configuration reference to code snippet
See gh-35031
2 years ago
Mortitz Halbritter 842e17eced Add Docker Compose support
Add `spring-boot-docker-compose` module with service connection
support.

Closes gh-34747

Co-authored-by: Phillip Webb <pwebb@vmware.com>
Co-authored-by: "Andy Wilkinson <wilkinsona@vmware.com>
2 years ago
Phillip Webb 5ac48f5f15 Add testcontainers service connection auto-configuration
Add auto-configuration for `Container` beans that are also
annotated with `@ServiceConnection`. This commit allow
testcontainers to be used at development time and a new section
has been added to the documentation to describe the feature.

Closes gh-35022
2 years ago
Phillip Webb 91e6e4e391 Update documentation to note the spring-boot-testcontainers module
See gh-34757
2 years ago
Phillip Webb 1a0b9bdcd0 Move Testcontainers documentation from howto to features
Closes gh-35018
2 years ago
Phillip Webb 81a972af8d Refactor testcontainers service connections
Update restcontainers service connections support so that
technology specific `@ServiceConnector` annotations are not longer
required.

A single `@ServiceConnector` annotation can now be used to create
all `ConnectionDetail` beans.

Closes gh-35017
2 years ago
Phillip Webb 11dac5b5b7 Create dedicated spring-boot-testcontainers module
Create a dedicated testcontainers module containing the service
connectors code.

Closes gh-34757
2 years ago
Phillip Webb 053c968fb4 Polish 2 years ago
Phillip Webb 00dc942e94 Migrate to Spring Security lambda config
Closes gh-35011
2 years ago
Stephane Nicoll c559bb2b69 Merge branch '3.0.x'
Closes gh-34941
2 years ago
Stephane Nicoll 86a8ed1d81 Merge branch '2.7.x' into 3.0.x
Closes gh-34940
2 years ago
Gerrit Meier 96919b4fcd Use current Neo4j version in testcontainers
See gh-34775
2 years ago
João Guilherme de Souza Lima b418ab8623 Clarify servlet container compatibility
See gh-34697
2 years ago
Stephane Nicoll a031bf4d58 Merge branch '3.0.x'
Closes gh-34867
2 years ago
Stephane Nicoll 579364c2ec Polish "Auto-configure observation for Spring-Batch"
See gh-34305
2 years ago
Isabek Tashiev e186d441ed Document requirement for Maven 3.6.3 and later
See gh-34759
2 years ago
Andy Wilkinson 95f45eab1f Create service connections from Testcontainers-managed containers
Building upon the auto-configuration support for service connections,
this commit adds support for deriving connection details from a
Testcontainers-managed container. Several service-specific
annotations have been introduced. These annotations can be used on a
container field to indicate that it is a source of the details for
a service connection.

See gh-34658

Co-Authored-By: Phillip Webb <pwebb@vmware.com>
Co-Authored-By: Mortitz Halbritter <mkammerer@vmware.com>
2 years ago
Andy Wilkinson 35a7669e0e Merge branch '3.0.x'
Closes gh-34727
2 years ago
Andy Wilkinson 26376ffcb1 Merge branch '2.7.x' into 3.0.x
Closes gh-34726
2 years ago
Andy Wilkinson 1fc3c34fa2 Document support for Java 20
Closes gh-34642
2 years ago
Andy Wilkinson f06536f642 Polish Authorization Server auto-configuration 2 years ago
Steve Riesenberg 25d77ee70b Add Spring Authorization Server support
See gh-34003
2 years ago
Scott Frederick a27bbbdfff Merge branch '3.0.x'
Closes gh-34707
2 years ago
swapy a450d8582d Fix typo in Spring Batch auto-configuration documentation
See gh-34646
2 years ago
Scott Frederick 80403b2ea8 Merge branch '3.0.x'
Closes gh-34706
2 years ago
Scott Frederick a8016b553e Merge branch '2.7.x' into 3.0.x
Closes gh-34705
2 years ago
Scott Frederick 1c05ad2852 Polish "Clarify conventions for custom error pages in WebFlux"
See gh-34534
2 years ago
Dave Syer f285364f22 Clarify conventions for custom error pages in WebFlux
See gh-34534
2 years ago
Scott Frederick 3d65be0e1c Merge branch '3.0.x'
Closes gh-34660
2 years ago
Scott Frederick 86a1cfff6f Merge branch '2.7.x' into 3.0.x
Closes gh-34659
2 years ago
Scott Frederick 6dc0f90e00 Polish "Disable embedded web auto-config when not using embedded web server"
See gh-34332
2 years ago
Guirong Hu b2facecb12 Disable embedded web auto-config when not using embedded web server
See gh-34332
2 years ago
Andy Wilkinson d51a042cb2 Merge branch '3.0.x'
Closes gh-34603
2 years ago
Andy Wilkinson 7f807dccb7 Merge branch '2.7.x' into 3.0.x
Closes gh-34602
2 years ago
Andy Wilkinson da156224aa Polish "Update two references to old APIs in the docs"
See gh-34567
2 years ago
1993heqiang e447c49f3b Update two references to old APIs in the docs
See gh-34567
2 years ago
Andy Wilkinson 671d8a876f Merge branch '3.0.x'
Closes gh-34463
2 years ago
Andy Wilkinson 6a95f44f67 Merge branch '2.7.x' into 3.0.x
Closes gh-34462
2 years ago
Andy Wilkinson 68a1dd3a76 Document support for Gradle 8
Closes gh-34458
2 years ago
Moritz Halbritter ee08614bf9 Merge branch '3.0.x'
Closes gh-34456
2 years ago
Mahmoud Ben Hassine 04bbbb4e4a Update Batch documentation
This commit updates the documentation about how
to configure Spring Batch v5 with Spring Boot v3.

See gh-34437
2 years ago
Moritz Halbritter 2becf70c2a Polish "Add RabbitTemplateCustomizer"
See gh-34050
2 years ago
Moritz Halbritter 54e9b2269e Merge branch '3.0.x'
Closes gh-34416
2 years ago