mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Merge branch '3.2.x'
Closes gh-40481
This commit is contained in:
commit
44941fea48
@ -48,9 +48,6 @@ When this module is included as a dependency Spring Boot will do the following:
|
||||
If the Docker Compose services are already running when starting the application, Spring Boot will only create the service connection beans for each supported container.
|
||||
It will not call `docker compose up` again and it will not call `docker compose stop` when the application is shutdown.
|
||||
|
||||
NOTE: By default, Spring Boot's Docker Compose support is disabled when running tests.
|
||||
To enable it, set configprop:spring.docker.compose.skip.in-tests[] to `false`.
|
||||
|
||||
|
||||
|
||||
[[features.dev-services.docker-compose.prerequisites]]
|
||||
@ -283,6 +280,25 @@ spring:
|
||||
|
||||
|
||||
|
||||
[[features.dev-services.docker-compose.tests]]
|
||||
=== Using Docker Compose in Tests
|
||||
|
||||
By default, Spring Boot's Docker Compose support is disabled when running tests.
|
||||
|
||||
To enable Docker Compose support in tests, set configprop:spring.docker.compose.skip.in-tests[] to `false`.
|
||||
|
||||
When using Gradle, you also need to change the configuration of the `spring-boot-docker-compose` dependency from `developmentOnly` to `testAndDevelopmentOnly`:
|
||||
|
||||
.Gradle
|
||||
[source,gradle,indent=0,subs="verbatim"]
|
||||
----
|
||||
dependencies {
|
||||
testAndDevelopmentOnly("org.springframework.boot:spring-boot-docker-compose")
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[features.dev-services.testcontainers]]
|
||||
== Testcontainers Support
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user