Springfox is not one of our projects. Please check the project’s documentation for the latest dependencies and use.
From: <[email protected]> on behalf of Anand Mishra <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Friday, May 11, 2018 at 18:42 To: Swagger <[email protected]> Subject: Re: Unable to infer base url. Hi Ron, One more thing i have used the following code then popup remove but apis are not giving response: import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; @Configuration public class WebMvcConfigure extends WebMvcConfigurItionSupport{ @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/webjars/**") .addResourceLocations("classpath:/META-INF/resources/webjars/"); registry.addResourceHandler("/swagger-ui.html") .addResourceLocations("classpath:/META-INF/resources/"); } } On Thursday, April 19, 2018 at 1:09:19 PM UTC+5:30, Anand Mishra wrote: When i am running swagger-ui , i am getting a popup which shows following error: Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually: -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
