Replace swagger 2 annotations with swagger 3 annotations (it is already included with springdoc-openapi-ui dependency). Package for swagger 3 annotations is io.swagger.v3.oas.annotations. @Api → @Tag @ApiIgnore → @Parameter(hidden = true) or @Operation(hidden = true) or @Hidden @ApiImplic...
springboot 集成 swagger 后, 在本地测试访问是正常的, 但是一部署到服务器上, 就经常会出现swagger接口中的测试地址是 127.0.0.1 这样的情况, 这是因为nginx的配置问题, 解决方案如下: 在nginx的代理中增加如下配置: proxy_set_header Host $host; # 指定host ©...