Why does springfox-swagger2 UI tell me Unable to infer base url. As far as I know, I am using a typical Swagger spring-boot configuration.
Unable to infer base url.
As you can
Add @EnableSwagger2 annotation in the main file of Springboot application
@EnableSwagger2
@SpringBootApplication @EnableSwagger2 public class SampleApplication { public static void main(String[] args) { SpringApplication.run(SampleApplication.class, args); } }