diff --git a/src/main/java/org/wiremock/spring/ConfigureWireMock.java b/src/main/java/org/wiremock/spring/ConfigureWireMock.java index 4896b4c..3a5eb3e 100644 --- a/src/main/java/org/wiremock/spring/ConfigureWireMock.java +++ b/src/main/java/org/wiremock/spring/ConfigureWireMock.java @@ -57,7 +57,7 @@ * #filesUnderClasspath()}/{@link #name()} enabling different mappings for differently named * WireMocks. */ - String[] filesUnderClasspath() default {"wiremock", "stubs", "mappings"}; + String[] filesUnderClasspath() default {}; /** * Directory paths to pass to {@link WireMockConfiguration#usingFilesUnderDirectory(String)}. diff --git a/wiremock-spring-boot-example/src/test/java/app/SingleWireMockTest.java b/wiremock-spring-boot-example/src/test/java/app/SingleWireMockTest.java index 89773c7..2c1631a 100644 --- a/wiremock-spring-boot-example/src/test/java/app/SingleWireMockTest.java +++ b/wiremock-spring-boot-example/src/test/java/app/SingleWireMockTest.java @@ -15,7 +15,12 @@ import org.wiremock.spring.InjectWireMock; @SpringBootTest -@EnableWireMock({@ConfigureWireMock(name = "user-client", baseUrlProperties = "user-client.url")}) +@EnableWireMock({ + @ConfigureWireMock( + name = "user-client", + filesUnderClasspath = {"wiremock"}, + baseUrlProperties = "user-client.url") +}) class SingleWireMockTest { @Autowired private UserClient userClient;