当前位置:网站首页>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
边栏推荐
- MySQL 45 lecture - learning from the actual battle of geek time MySQL 45 Lecture Notes - 04 | easy to understand index (Part 1)
- Origin plots thermogravimetric TG and differential thermogravimetric DTG curves
- Qt入门-制作一个简易的计算器
- How to set QT manual layout
- 线性dp求解 最长子序列 —— 小题三则
- Add sequence number column to query results in MySQL
- [Blue Bridge Cup] children's worship circle
- Why can't d link DLL
- Selenium, element operation and browser operation methods
- Stone merging Board [interval DP] (ordinary stone Merging & Ring Stone merging)
猜你喜欢

When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview

Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred

uniapp小程序 subPackages分包配置

selenium,元素操作以及浏览器操作方法

selenium 元素定位方法

Qt新建项目
![Unity small map production [2]](/img/d6/9d6556d37525b9986b74133f2a7aaa.jpg)
Unity small map production [2]

Code implementation MNLM

Simple introduction to ENSP

(POJ - 1984) navigation nightare (weighted and search set)
随机推荐
Dingtalk send message
Error: eacces: permission denied, access to "/usr/lib/node_modules"
万物生长大会在杭召开,当贝入选2022中国未来独角兽TOP100榜单
Mysql5.7 installation super easy tutorial
Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred
P1908 reverse sequence pair
kaggle如何使用utility script
Verification failed, please check your call back website. You can follow the instructions
数据湖(十一):Iceberg表数据组织与查询
Solution: Compression Technology (original version and sequel version)
Skillfully use SSH to get through the Internet restrictions
mysql ---- Oracle中的rownum转换成MySQL
P1908 逆序对
Browser driven Download
故事點 vs. 人天
Selenium installing selenium in pycharm
Qt入门-制作一个简易的计算器
ensp简单入门
Daily practice of C language --- monkeys divide peaches
Let juicefs help you with "remote backup"