不加以下配置这个使用@EnableSwagger2注解时会报错
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…
导入依赖
3、建一个controller 4、在启动类加 5、启动、访问io.springfox springfox-swagger-ui 2.7.0 io.springfox springfox-swagger2 2.7.0
http://localhost:8080/swagger-ui.html



