当前位置:网站首页>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
边栏推荐
- Pointer from entry to advanced (1)
- MySQL 45 lecture - learning from the actual battle of geek time MySQL 45 Lecture Notes - 04 | easy to understand index (Part 1)
- 千元投影小明Q1 Pro和极米NEW Play谁更好?和哈趣K1比哪款配置更高?
- P3008 [usaco11jan]roads and planes g (SPFA + SLF optimization)
- Mysql5.7 installation super easy tutorial
- Browser driven Download
- ensp简单入门
- [document tree, setting] font becomes smaller
- 不会看器件手册的工程师不是个好厨子
- [USACO05JAN]Watchcow S(欧拉回路)
猜你喜欢

In 2021, the global TCB adapter revenue was about $93 million, and it is expected to reach $315.5 million in 2028

uniapp小程序 subPackages分包配置

Design of non main lamp: how to make intelligent lighting more "intelligent"?

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

Qt新建项目

Qt新项目_MyNotepad++

c# 水晶报表打印

Selenium element positioning method

Subcontracting configuration of uniapp applet subpackages

Drawing Nyquist diagram with MATLAB
随机推荐
kaggle如何使用utility script
MySQL45讲——学习极客时间MySQL实战45讲笔记—— 04 | 深入浅出索引(上)
数据湖(十一):Iceberg表数据组织与查询
Getting started with QT - making a simple calculator
Story point vs. Human Sky
Student course selection information management system based on ssm+jsp framework [source code + database]
Which do you choose between Alibaba P7 with an annual salary of 900000 and deputy department level cadres?
[document tree, setting] font becomes smaller
自定义事件,全局事件总线,消息订阅与发布,$nextTick
SystemServer进程
The 29 year old programmer in Shanghai was sentenced to 10 months for "deleting the database and running away" on the day of his resignation!
Chaos engineering platform chaosblade box new heavy release
Stone merging Board [interval DP] (ordinary stone Merging & Ring Stone merging)
Simple introduction to ENSP
石子合并板子【区间DP】(普通石子合并 & 环形石子合并)
[usaco05jan]watchcow s (Euler loop)
Sum of the first n terms of Fibonacci (fast power of matrix)
代码实现MNLM
Don't spend money, spend an hour to build your own blog website
D how to check null