Fix more URLs.

# Conflicts:
#	docs/src/main/asciidoc/verifier_setup.adoc
This commit is contained in:
Olga Maciaszek-Sharma
2019-03-27 19:19:17 +01:00
parent c0e3ba7c84
commit 23ab59b7cf

View File

@@ -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