当前位置:网站首页>Use of swagger
Use of swagger
2022-07-02 14:05:00 【Beihai shad is awake】
1: Create a spring boot web project
2: Join the rely on :
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
3: Test whether the project can be accessed normally
4: To configure swagger
package com.dongmu.swagger.config;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration // Configuration class
@EnableSwagger2// Turn on Swagger2 Automatic configuration of
public class SwaggerConfig {
}
5: It's ready to use at this time , Remember to reduce the error when starting springboot Version of
Access to the results https://blog.csdn.net/weixin_44449838/article/details/108713248
边栏推荐
- uniapp小程序 subPackages分包配置
- Why can't d link DLL
- 当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选
- MySQL 45 lecture - learning from the actual battle of geek time MySQL 45 Lecture Notes - 04 | easy to understand index (Part 1)
- [unity] using GB2312, the solution to abnormal program after packaging
- Téléchargement par navigateur
- 代码实现MNLM
- Qt如何设置固定大小
- [deep learning] simple implementation of neural network forward propagation
- PyQt5_QScrollArea内容保存成图片
猜你喜欢
uniapp小程序 subPackages分包配置
全屋Wi-Fi:一个谁也解决不好的痛点?
QT new project_ MyNotepad++
Node. JS accessing PostgreSQL database through ODBC
2022 Heilongjiang provincial examination on the writing skills of Application Essays
自定义事件,全局事件总线,消息订阅与发布,$nextTick
Why is the default of switch followed by break?
kaggle如何使用utility script
Use of UIC in QT
Everyone believes that the one-stop credit platform makes the credit scenario "useful"
随机推荐
Add sequence number column to query results in MySQL
rxjs Observable 自定义 Operator 的开发技巧
Custom events, global event bus, message subscription and publishing, $nexttick
uni-app中使用computed解决了tab切换中data()值显示的异常
On flow delivery between microservices
Chaos engineering platform chaosblade box new heavy release
给Android程序员的一些面试建议「建议收藏」
In 2021, the global styrene butadiene styrene (SBS) revenue was about $3722.7 million, and it is expected to reach $5679.6 million in 2028
Téléchargement par navigateur
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
ArrayList and LinkedList
【模板】最长公共子序列 (【DP or 贪心】板子)
Systemserver process
qt中uic的使用
Story point vs. Human Sky
Memory management 01 - link script
Verification failed, please check your call back website. You can follow the instructions
(POJ - 1308)Is It A Tree? (tree)
Use bloc to build a page instance of shutter
ensp简单入门