所以,我两天前刚开始使用Swagger,我看到了一个关于如何在我的API上配置基本Swagger文档的视频。.paths(PathSelectors.any()) }
我下载了spring-instrument.jar并将其添加到我的项目中在pom.xml中添加了依赖项,仅此而已。然后,当我试图访问localhost/my-project/swagger-ui.html时,出现了Unable to infer
如何将调用swagger api文档的位置从http://localhost:8081/swagger-ui.html更改为http://localhost:8081/my-api-doc@Configurationpublic class SwaggerConfig { public Docket api() {