【问题标题】:HTTP not present on Schemes Swagger dropdownSchemes Swagger 下拉菜单中不存在 HTTP
【发布时间】:2021-06-10 14:27:02
【问题描述】:

我正在使用 springfox-swagger-ui,无论出于何种原因,下拉菜单中只有 https 方案可用,即使我通过 http 访问 swagger ui。我暂时无法使用 https,因此需要启用该方案,但在文档中找不到任何内容。知道为什么会这样吗?

【问题讨论】:

    标签: java spring-boot swagger springfox


    【解决方案1】:

    将以下行添加到您的yaml 页面:

    schemes:
      - "https"
      - "http"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-23
      • 1970-01-01
      • 2012-05-27
      • 1970-01-01
      相关资源
      最近更新 更多