marcingrzejszczak on 2.2.x
Migrated to docs.spring.io & up… (compare)
Hi, When upgrading spring-cloud-dependencies to Hoxton.SR5 we received errors in our spring cloud contract client stub tests where we're using Spring Cloud Contract Stub Runner for running the WireMock instances to simulate the actual service being called. When running the test, we received class not found exception for
It works fine with spring-cloud-dependencies Hoxton.SR4 but not with Hoxton.SR5. By adding additional dependency to spring-cloud-loadbalancer, the contract client stub tests pass.
Are there any new dependencies in spring-cloud-contract to spring-cloud-loadbalancer that needs to be added?
@AutoconfigureWiremockannotations is only supported on tomcat … is this true? Until now we were fine using netty/webflux as well …
If you have a Spring Boot application that uses Tomcat as an embedded server (which is the default with spring-boot-starter-web), you can add spring-cloud-starter-contract-stub-runner to your classpath and add @AutoConfigureWireMock to use Wiremock in your tests.