You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Boot+springdoc-openapi:如何隐藏Swagger UI的Explore区域?

隐藏Swagger UI的Explore区域配置方案

你可以通过Spring Boot配置文件直接禁用Swagger UI的Explore区域,无需额外自定义修改,具体配置如下:

  • 使用application.properties配置:
springdoc.swagger-ui.explore.enabled=false
  • 使用application.yml配置:
springdoc:
  swagger-ui:
    explore:
      enabled: false

上述配置适配你使用的springdoc-openapi-starter-webmvc-ui 2.0.2版本,配置完成后重启应用,Swagger UI页面中的Explore区域就会被隐藏。

内容的提问来源于stack exchange,提问作者blaiso

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.23 16:08:08