Using with Spring Boot
Disclaimer: This solution page includes resources maintained by their authors outside the WireMock organization on GitHub. The info is provided as is without guarantees unless explicitly specified. Referenced projects and guidelines might be incompatible with the recent WireMock 3.x releases or the recent versions of the target technology or framework.
Please use with caution, and submit GitHub issues or pull requests to this page and referenced repositories if something is missing, broken or needs update.
The team behind Spring Cloud Contract have created a library to support running WireMock using the “ambient” HTTP server. It also simplifies some aspects of configuration and eliminates some common issues that occur when running Spring Boot and WireMock together.
See Spring Cloud Contract WireMock for details.
The article Faking OAuth2 Single Sign-on in Spring from Pivotal’s blog shows how WireMock can be used to test Spring apps that use 3rd party OAuth2 login.
Useful pages #
- WireMock on Java and JVM - Most of JVM generic solutions are applicable to Spring Boot development too