This is a simple Wiremock server, used to mock requests.
In my case I use to simulate another simple microservice.
Basically the main configuration is in the following directories:
src/main/resources/wiremock/__files
: contains the response of each request.src/main/wirmeock/wiremock/mappings
: contains the files that do the mapping of each request and each file response.
- Java 21
- Wiremock 3.6.0
- Slf4j
First compile and generate a jar:
mvn package
After run the following command:
java -jar wiremock-app-1.0-SNAPSHOT.jar
By default, will be executed on port 8082.