From 23ab59b7cf52782b768a4781c1d8a7571aed56b4 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Wed, 27 Mar 2019 19:19:17 +0100 Subject: [PATCH] Fix more URLs. # Conflicts: # docs/src/main/asciidoc/verifier_setup.adoc --- README.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.adoc b/README.adoc index 7374151231..f153e00066 100644 --- a/README.adoc +++ b/README.adoc @@ -1550,6 +1550,14 @@ NOTE: Actually, WireMock always loads mappings from `src/test/resources/mappings well as* the custom locations in the stubs attribute. To change this behavior, you can also specify a files root as described in the next section of this document. +If you're using Spring Cloud Contract's default stub jars, then your +stubs are stored under `/META-INF/group-id/artifact-id/versions/mappings/` folder. If you want to register all stubs from that location, from all embedded JARs, then it's enough to use the following syntax. + +[source,java,indent=0] +---- +@AutoConfigureWireMock(port = 0, stubs = "classpath*:/META-INF/**/mappings/**/*.json") +---- + === Using Files to Specify the Stub Bodies WireMock can read response bodies from files on the classpath or the file system. In that