青岛啤酒节是什么时候| 艾灸治什么病| 錾是什么意思| 血小板为什么会减少| 吃什么水果减肥最快| 吉数是什么数字| 什么是全麦面粉| 福利院是干什么的| 亚硝酸盐阴性是什么意思| 睡不着吃什么| bata鞋属于什么档次| 虚岁28岁属什么生肖| 脾胃虚吃什么好| 活塞是什么意思| 疾控中心属于什么单位| revive是什么意思| 长期吃避孕药有什么危害| 银行降息意味着什么| 产奶速度慢是什么原因| 对牛弹琴告诉我们什么道理| 气性大是什么意思| 夏天吃西瓜有什么好处| 男人要的归属感是什么| 打酱油是什么意思啊| 空调出现pl是什么意思| 什么非常什么| 黄金豆是什么豆| 受惊吓吃什么药| 二郎神叫什么名字| 类风湿不能吃什么东西| 左手中指麻木是什么原因| 无性别是什么意思| 鱼肝油是什么| 梦见蚯蚓是什么预兆| 流脑是什么病| 球蛋白低是什么原因| 嘴唇暗红色是什么原因| 鞭长莫及什么意思| 突然暴瘦是什么原因| 脂肪肝吃什么中成药| 为什么洗头发时会掉很多头发| 长命百岁的动物是什么| 缴费基数是什么意思| 包皮什么年龄割最好| 肌酐是什么指标| 什么是卒中| 失眠吃什么水果| 娇气是什么意思| 云雾茶属于什么茶| 资生堂属于什么档次| 白细胞多是什么原因| 情绪不稳定易怒烦躁是什么症状| 高抬腿运动有什么好处| 怕吹空调是什么原因| 缺铁性贫血吃什么补得快| rl是什么单位| 通勤什么意思| 散瞳后需要注意什么| 吃什么对嗓子好| 何解是什么意思| 香兰素是什么东西| 房产税什么时候开始征收| 脸部麻木是什么的前兆| 吃什么可以补充雌激素| 肌酐偏高是什么意思| 小孩吃了就吐是什么原因| item什么意思| 坐小月子可以吃什么水果| 吃了避孕药会有什么副作用| 六月一日是什么星座| 梦见买面条有什么预兆| 天地不仁以万物为刍狗什么意思| 拉屎黑色的是什么原因| 什么样的天山| 肉身成圣是什么意思| 梦见自己给自己理发是什么意思| 嘴角长痘痘是什么原因| 舌苔厚是什么原因| 积滞是什么意思| 伤寒现在叫什么病| 开塞露加什么能去皱纹| 七月有什么节日| 宋徽宗叫什么| 什么面朝天| 狮子座的幸运色是什么| 梅兰竹菊代表什么生肖| 什么是慰安妇| 灵芝对身体有什么好处| 糖尿病人晚餐吃什么最好| 六月底是什么星座| 抗ccp抗体高说明什么| 汕头有什么好玩的地方| 高压高低压正常是什么原因| 卡罗莱手表是什么档次| 特首是什么意思| 4月24号是什么星座| 左眼跳代表什么| 12月10号什么星座| 淤青用什么药| 2020年什么年| 什么原因造成糖尿病| oa是什么| 陈旧性骨折是什么意思| 三维彩超主要检查什么| 喝茶有什么好处和坏处| 脚烧是什么原因| 甲亢可以吃什么| 什么是耳石症| 什么体质容易高原反应| 调和营卫是什么意思| 美如天仙是什么生肖| 什么是坐骨神经疼有什么症状| 水可以做什么| 舒张压和收缩压是什么| 家五行属什么| 月光蓝是什么颜色| 百依百顺是什么生肖| cnn是什么意思| 结婚13年是什么婚| 宝宝手脚冰凉是什么原因| 怀孕初期胸部有什么变化| 吃什么可以降低尿酸| 左手中指戴戒指什么意思| 血瘀是什么原因造成的| 默念是什么意思| 高汤是什么汤| 打嗝吃什么药好| 秋葵有什么营养价值| hp是阳性什么意思| 喂母乳不能吃什么| 为什么筋膜炎一躺下才会疼| 为什么发烧会觉得冷| 甜瓜不能和什么一起吃| 冰清玉洁是什么意思| 封印是什么意思| 怀孕初期头晕是什么原因| bambi什么意思| 泡茶用什么水好| 巫是什么意思| 虚不受补是什么意思| 大便有血是什么原因男性| pbr是什么意思| ecg医学上什么意思| 吃什么增加白细胞最快| 四书五经指的是什么| 十指连心是什么意思| 手脚发麻吃什么药| 3.22什么星座| 孕妇什么水果不能吃| 为什么长不高| 精索静脉曲张是什么原因导致的| 霍山石斛有什么功效| 心梗有什么症状| b超属于什么科室| 心脏下边是什么器官| 6月6日是什么星座| 果糖胺偏高说明什么| 吃牛肉不能吃什么| 痉挛是什么症状| 早上左眼跳是什么预兆| 男性生殖长水泡是什么原因| 什么是燕窝| 质地是什么意思| 羊水穿刺是查什么的| 儿童肠系膜淋巴结炎吃什么药| 梦见绿豆是什么意思| 华山在什么地方| 8月份是什么星座| 118是什么星座| 什么样的天山| 拔智齿后可以吃什么| 光阴荏苒是什么意思| 心灵鸡汤是什么意思| 高血压2级是什么意思| 后羿属什么生肖| 国家能源局是什么级别| 周瑜是一个什么样的人| 血脂粘稠有什么症状| xxs是什么意思| 碧根果和核桃有什么区别| 妇科臭氧治疗的作用是什么| 甲子年是什么意思| 大吉是什么意思| 混合性皮肤用什么护肤品比较好| 生日送什么| 血糖高什么原因引起| 上面一个处下面一个日是什么字| 牙齿遇热就疼什么原因| 腮腺炎吃什么药好| 肩膀疼吃什么药| 四维彩超主要检查什么| 青鸾是什么意思| 肩膀上的肌肉叫什么| 在什么上面| 辛卯五行属什么| 心口疼吃什么药| 袁绍和袁术是什么关系| 发髻是什么意思| 猪儿虫是什么意思| 小孩下面痒用什么药| 负利率是什么意思| 为什么会岔气| 葫芦的寓意是什么| 喝完酒头疼是什么原因| 舌苔白色是什么原因| 标准的青色是什么颜色| 胃不好喝什么茶好| 什么油最健康| 白细胞低什么原因| 医保统筹是什么意思| 肿瘤标志物是什么| 为什么夏天容易拉肚子| 什么叫质子| 月亮发红是什么原因| 12月27日什么星座| 3.9是什么星座| 喜什么自什么| 套话是什么意思| 生肖鼠和什么生肖相冲| 胆囊切除后可以吃什么水果| 全麦粉和小麦粉的区别是什么| 木糖醇是什么| 龙头凤尾是什么生肖| 病毒性感染是什么原因引起的| 小孩子不吃饭是什么原因引起的| 瑞士移民需要什么条件| 血痣是什么原因引起的| 肺结节钙化是什么意思| 39属什么| 红斑狼疮吃什么药最好| 安眠穴在什么位置| o型血可以接受什么血型| 暗网是什么| 双肺多发结节是什么意思| 表白送什么花| 皮肤敏感是什么意思| 拉肚子喝什么水| 什么人不能吃绿豆| 3a是什么| 霜降是什么时候| 建档是什么意思| 惊奇的什么| 八五年属什么| 淋巴结有血流信号预示着什么| 为什么怀孕了就不来月经了| 海水倒灌是什么意思| 维生素d是什么| 什么花没有叶子| 医保卡是什么样子的| 大姨的女儿叫什么| 吃什么药不能献血| 什么是周岁| 过敏性紫癜不能吃什么| 三生万物是什么意思| 惊悸的意思是什么| 受贿是什么意思| 前置胎盘需要注意什么| 梅核气吃什么药好得快| 乙肝表面抗原阴性是什么意思| caluola手表是什么牌子| 什么叫白内障| 呼吸重是什么原因| 姥姥的妈妈叫什么| 酸梅汤有什么功效| 百度
Skip to content

springdoc/springdoc-openapi

Octocat Build Status Quality Gate Known Vulnerabilities Stack Exchange questions

IMPORTANT: springdoc-openapi v1.8.0 is the latest Open Source release supporting Spring Boot 2.x and 1.x.

An extended support for springdoc-openapi v1 project is now available for organizations that need support beyond 2023.

For more details, feel free to reach out: sales@springdoc.org

springdoc-openapi is on Open Collective. If you ?? this project consider becoming a sponsor.

This project is sponsored by

??

Table of Contents

Introduction

The springdoc-openapi Java library helps automating the generation of API documentation using Spring Boot projects. springdoc-openapi works by examining an application at runtime to infer API semantics based on Spring configurations, class structure and various annotations.

The library automatically generates documentation in JSON/YAML and HTML formatted pages. The generated documentation can be complemented using swagger-api annotations.

This library supports:

  • OpenAPI 3
  • Spring-boot v3 (Java 17 & Jakarta EE 9)
  • JSR-303, specifically for @NotNull, @Min, @Max, and @Size.
  • Swagger-ui
  • OAuth 2
  • GraalVM native images

The following video introduces the Library:

For spring-boot v3 support, make sure you use springdoc-openapi v2

This is a community-based project, not maintained by the Spring Framework Contributors ( Pivotal)

Getting Started

Library for springdoc-openapi integration with spring-boot and swagger-ui

  • Automatically deploys swagger-ui to a Spring Boot 3.x application
  • Documentation will be available in HTML format, using the official swagger-ui jars.
  • The Swagger UI page should then be available at http://server: port/context-path/swagger-ui.html and the OpenAPI description will be available at the following url for json format: http://server:port/context-path/v3/api-docs
    • server: The server name or IP
    • port: The server port
    • context-path: The context path of the application
  • Documentation can be available in yaml format as well, on the following path: /v3/api-docs.yaml
  • Add the springdoc-openapi-ui library to the list of your project dependencies (No additional configuration is needed):

Maven

   <dependency>
      <groupId>org.springdoc</groupId>
      <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
      <version>last-release-version</version>
   </dependency>

Gradle

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:latest'
  • This step is optional: For custom path of the swagger documentation in HTML format, add a custom springdoc property, in your spring-boot configuration file:
# swagger-ui custom path
springdoc.swagger-ui.path=/swagger-ui.html

Spring-boot with OpenAPI Demo applications.

Branching

Integration of the library in a Spring Boot 3.x project without the swagger-ui:

  • Documentation will be available at the following url for json format: http://server: port/context-path/v3/api-docs
    • server: The server name or IP
    • port: The server port
    • context-path: The context path of the application
  • Documentation will be available in yaml format as well, on the following path : /v3/api-docs.yaml
  • Add the library to the list of your project dependencies. (No additional configuration is needed)

Maven

   <dependency>
      <groupId>org.springdoc</groupId>
      <artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
      <version>last-release-version</version>
   </dependency>

Gradle

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:latest'
  • This step is optional: For custom path of the OpenAPI documentation in Json format, add a custom springdoc property, in your spring-boot configuration file:
# /api-docs endpoint custom path
springdoc.api-docs.path=/api-docs
  • This step is optional: If you want to disable springdoc-openapi endpoints, add a custom springdoc property, in your spring-boot configuration file:
# disable api-docs
springdoc.api-docs.enabled=false

Error Handling for REST using @ControllerAdvice

To generate documentation automatically, make sure all the methods declare the HTTP Code responses using the annotation: @ResponseStatus.

Adding API Information and Security documentation

The library uses spring-boot application auto-configured packages to scan for the following annotations in spring beans: OpenAPIDefinition and Info. These annotations declare, API Information: Title, version, licence, security, servers, tags, security and externalDocs. For better performance of documentation generation, declare @OpenAPIDefinition and @SecurityScheme annotations within a Spring managed bean.

spring-webflux support with Annotated Controllers

  • Documentation can be available in yaml format as well, on the following path : /v3/api-docs.yaml
  • Add the library to the list of your project dependencies (No additional configuration is needed)

Maven

   <dependency>
      <groupId>org.springdoc</groupId>
      <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
      <version>last-release-version</version>
   </dependency>

Gradle

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:latest'
  • This step is optional: For custom path of the swagger documentation in HTML format, add a custom springdoc property, in your spring-boot configuration file:
# swagger-ui custom path
springdoc.swagger-ui.path=/swagger-ui.html

The springdoc-openapi libraries are hosted on maven central repository. The artifacts can be viewed accessed at the following locations:

Releases:

Snapshots:

Acknowledgements

Contributors

springdoc-openapi is relevant and updated regularly due to the valuable contributions from its contributors.

Thanks you all for your support!

Additional Support

  • Spring Team - Thanks for their support by sharing all relevant resources around Spring projects.
  • JetBrains - Thanks a lot for supporting springdoc-openapi project.

JenBrains logo

警察两杠三星是什么级别 艾滋有什么症状 掌纹多而乱代表什么 阴蒂痛是什么原因 脚肿是什么原因
鱼香肉丝是什么菜系 山药和什么不能一起吃 性冷淡是什么 皮皮虾吃什么 车前草的作用是什么
常山现在叫什么 4.21什么星座 青石是什么石头 母亲节做什么 朱元璋长什么样
胆固醇高是什么原因引起 中国国菜是什么菜 黑枸杞的功效是什么 财代表什么生肖 生殖细胞是什么
一个鸟一个衣是什么字hcv8jop2ns4r.cn ckd医学上是什么意思onlinewuye.com crp是什么hcv9jop7ns5r.cn 冲是什么意思hcv8jop3ns1r.cn 双肺斑索是什么意思hcv9jop4ns6r.cn
花开花落不见你回头是什么歌hcv8jop2ns0r.cn 闰月是什么hcv8jop9ns5r.cn 怀孕了不想要最好的办法是什么hcv9jop2ns0r.cn 结核菌是什么hanqikai.com 经常感冒是什么原因hcv8jop0ns3r.cn
测智力去医院挂什么科hcv9jop0ns3r.cn 发粉是什么shenchushe.com 弥漫性病变是什么意思hcv8jop6ns0r.cn 高血压吃什么好hcv8jop0ns6r.cn 沁什么意思hcv8jop1ns4r.cn
化疗后恶心呕吐吃什么可以缓解hcv8jop8ns0r.cn 脚踝肿了是什么原因hcv8jop4ns9r.cn 臭酸是什么hcv8jop1ns3r.cn 大脑精神紊乱什么病hcv9jop1ns3r.cn 阴道有味道是什么原因tiangongnft.com
百度