Anil Mullamuri
01/27/2025, 7:15 PM@EventListener(ApplicationReadyEvent.class)
public void startWireMockServer(){
wireMockServer = new WireMockServer(
WireMockConfiguration.wireMockConfig()
.port(Integer.parseInt(wiremockPort))
.usingFilesUnderDirectory(mappingsDirectory)
.withRootDirectory(filesDirectory)
.notifier(new ConsoleNotifier(true))
.enableBrowserProxying(true)
);
wireMockServer.start();
}
@EventListener(ContextClosedEvent.class)
public void stopWireMockServer() {
if(null != wireMockServer){
wireMockServer.stop();
}
}
Above logic placed in spring boot main application file
Problem: When i am trying to access http://localhost:8082/__admin/swagger-ui/, it showing blank screen and in console showing below
2025-01-28T004326.602+05:30 WARN 21208 --- [Wiremock-poc] [p1281205497-144] o.e.jetty.ee10.servlet.ResourceServlet : Deprecated resourceBase used instead of baseResource
2025-01-28T004326.691+05:30 WARN 21208 --- [Wiremock-poc] [p1281205497-131] o.e.jetty.ee10.servlet.DefaultServlet : Incorrect mapping for DefaultServlet at /swagger-ui/*. Use ResourceServlet
Please guide to the solution please, also i am unable to see recorder web UI also