diff --git a/_data/doc-categories.yml b/_data/doc-categories.yml index bb00c771..7ba615de 100644 --- a/_data/doc-categories.yml +++ b/_data/doc-categories.yml @@ -22,7 +22,7 @@ java: pages: - junit-jupiter - junit-extensions - - spring-boot + - spring-boot-integration - java-usage - configuration - running-without-http-server diff --git a/_docs/index.html b/_docs/index.html index 1314ee6a..93b89744 100644 --- a/_docs/index.html +++ b/_docs/index.html @@ -236,7 +236,7 @@

By technology

Python - + Spring Boot diff --git a/_docs/solutions/spring-boot.md b/_docs/solutions/spring-boot-integration.md similarity index 76% rename from _docs/solutions/spring-boot.md rename to _docs/solutions/spring-boot-integration.md index 9e0016b7..97d6cf5a 100644 --- a/_docs/solutions/spring-boot.md +++ b/_docs/solutions/spring-boot-integration.md @@ -6,40 +6,22 @@ description: The team behind Spring Cloud Contract have created a library to sup redirect_from: - "/docs/spring-boot.html" logo: /images/logos/technology/spring.svg +hide-disclaimer: true ---
Centralize and scale your API mocks with WireMock Cloud.
## WireMock Spring Boot -[WireMock Spring Boot](https://github.com/wiremock/wiremock-spring-boot) is the simplest way to integrate Spring Boot, Junit 5 and WireMock. +WireMock's official Spring Boot integration library is the simplest way to configure Spring Boot, Junit 5 and WireMock to work together. + + It includes fully declarative WireMock setup, supports multiple `WireMockServer` instances, automatically sets Spring environment properties, and does not pollute Spring application context with extra beans. -Example: - -```java -@SpringBootTest -@EnableWireMock -class DefaultInstanceTest { - - @Value("${wiremock.server.baseUrl}") - private String wiremockUrl; - - @Test - void returnsTodos() { - WireMock.stubFor(get("/ping") - .willReturn(aResponse() - .withStatus(200))); - - RestAssured - .when() - .get(this.wiremockUrl + "/ping") - .then() - .statusCode(200); - } -} -``` +See [WireMock Spring Boot Integration](/docs/spring-boot/) for details on installation and usage. + +You can contribute or log an issue in the [GitHub project](https://github.com/wiremock/wiremock-spring-boot). ## Spring Cloud Contract diff --git a/_docs/spring-boot.md b/_docs/spring-boot.md index 4de2299f..776507bb 100644 --- a/_docs/spring-boot.md +++ b/_docs/spring-boot.md @@ -1,6 +1,6 @@ --- layout: docs -title: "Spring Boot Integration" +title: "WireMock Spring Boot Integration" meta_title: Using WireMock's Spring Boot + JUnit 5 integration | WireMock description: Integrating WireMock, Spring Boot and JUnit 5 via the official integration library. ---