当前位置:网站首页>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
边栏推荐
- Verification failed, please check your call back website. You can follow the instructions
- Daily practice of C language --- monkeys divide peaches
- Quantum three body problem: Landau fall
- 无主灯设计:如何让智能照明更加「智能」?
- QT how to set fixed size
- Android kotlin fragment technology point
- P1347 排序(拓扑 + spfa判断环 or 拓扑[内判断环])
- Selenium element positioning method
- Achievements in science and Technology (27)
- OpenFOAM:lduMatrix&lduAddressing
猜你喜欢

selenium 元素定位方法

Error: eacces: permission denied, access to "/usr/lib/node_modules"

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

c# 水晶报表打印

Halcon extract orange (Orange)

Codeforces Round #803 (Div. 2)(A~D)

The conference on the growth of all things was held in Hangzhou, and dangbei was selected into the top 100 list of future unicorns in China in 2022

Error function ERF

QT new project_ MyNotepad++

A better database client management tool than Navicat
随机推荐
Word frequency statistics & sorting
Code implementation MNLM
Story point vs. Human Sky
万物生长大会在杭召开,当贝入选2022中国未来独角兽TOP100榜单
mysql ---- Oracle中的rownum转换成MySQL
Route (II)
BeanUtils -- shallow copy -- example / principle
qt中uic的使用
Node. JS accessing PostgreSQL database through ODBC
【文档树、设置】字体变小
selenium 元素定位方法
P1908 reverse sequence pair
你的 Sleep 服务会梦到服务网格外的 bookinfo 吗
[Blue Bridge Cup] children's worship circle
【虹科技术分享】如何测试 DNS 服务器:DNS 性能和响应时间测试
PyQt5_QScrollArea内容保存成图片
selenium的特点
不会看器件手册的工程师不是个好厨子
Quarkus学习四 - 项目开发到部署
[USACO05JAN]Watchcow S(欧拉回路)