【SpringBoot】98、SpringBoot中整合springdoc-openapi-ui接口文档

1、引入依赖

  • 引入依赖
<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-ui
springdoc-openapi是一个Java库,它可以帮助使用Spring Boot项目自动生成API文档。它通过检查应用程序的运行时信息,根据Spring配置、类结构和注释来推断API的语义。要在项目中使用springdoc-openapi,你需要在Maven中引入相应的依赖。例如,可以在pom.xml文件中添加以下依赖项: ```xml <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> <version>1.6.15</version> </dependency> ``` 这样就可以使用springdoc-openapi来生成API文档了。\[1\]\[2\]\[3\] #### 引用[.reference_title] - *1* *2* [【超详细】springboot + springdoc-openapi + knife4j 集成案例](https://blog.csdn.net/BASK2312/article/details/129764768)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Spring Boot 整合 springdoc-openapi](https://blog.csdn.net/qq_41787812/article/details/128627748)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Asurplus

学如逆水行舟,不进则退

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值