当前位置:网站首页>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
边栏推荐
- Slashgear shares 2021 life changing technology products, which are somewhat unexpected
- 混沌工程平台 ChaosBlade-Box 新版重磅发布
- Three talking about exception -- error handling
- 抓包工具fiddler学习
- Node. JS accessing PostgreSQL database through ODBC
- Gee learning notes 2
- Getting started with QT - making a simple calculator
- In 2021, the global revenue of structural bolts was about $796.4 million, and it is expected to reach $1097.6 million in 2028
- BeanUtils--浅拷贝--实例/原理
- c# 水晶报表打印
猜你喜欢

全屋Wi-Fi:一个谁也解决不好的痛点?

Don't spend money, spend an hour to build your own blog website

2022 home projector preferred! Dangbei F5 brings the ultimate audio-visual experience with its powerful audio-visual effect

Launcher启动过程

qt中uic的使用

OpenFOAM:lduMatrix&lduAddressing

Systemserver process

Qt入门-制作一个简易的计算器

默认插槽,具名插槽,作用域插槽

OpenFOAM:lduMatrix&lduAddressing
随机推荐
P3008 [USACO11JAN]Roads and Planes G (SPFA + SLF优化)
Astro learning notes
全屋Wi-Fi:一个谁也解决不好的痛点?
自定义事件,全局事件总线,消息订阅与发布,$nextTick
Custom events, global event bus, message subscription and publishing, $nexttick
MySQL45讲——学习极客时间MySQL实战45讲笔记—— 04 | 深入浅出索引(上)
On flow delivery between microservices
Pattern matching and regular expressions in PostgreSQL - Das
Characteristics of selenium
Quantum three body problem: Landau fall
每天坚持20分钟go的基础二
Why is the default of switch followed by break?
mysql ---- Oracle中的rownum转换成MySQL
Error function ERF
PyQt5_QScrollArea内容保存成图片
D language, possible 'string plug-ins'
Selenium element positioning method
P1908 逆序对
软件测试的方法
selenium 在pycharm中安装selenium