当前位置:网站首页>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
边栏推荐
- 故事点 vs. 人天
- Dingtalk send message
- 数据湖(十一):Iceberg表数据组织与查询
- OpenFOAM:lduMatrix&lduAddressing
- Unity small map production [2]
- Quarkus学习四 - 项目开发到部署
- 自定义事件,全局事件总线,消息订阅与发布,$nextTick
- 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
- kaggle如何使用utility script
- [usaco05jan]watchcow s (Euler loop)
猜你喜欢
![Unity small map production [2]](/img/d6/9d6556d37525b9986b74133f2a7aaa.jpg)
Unity small map production [2]

Launcher startup process

Engineers who can't read device manuals are not good cooks

联合搜索:搜索中的所有需求

错误:EACCES:权限被拒绝,访问“/usr/lib/node_modules”

Explanation: here is your UFO, Goldbach conjecture

【虹科技术分享】如何测试 DNS 服务器:DNS 性能和响应时间测试

2022 Heilongjiang provincial examination on the writing skills of Application Essays

Browser driven Download

Whole house Wi Fi: a pain point that no one can solve?
随机推荐
混沌工程平台 ChaosBlade-Box 新版重磅发布
Selenium installing selenium in pycharm
Quarkus学习四 - 项目开发到部署
Winter vacation daily question - lucky numbers in the matrix
Golang 快速生成数据库表的 model 和 queryset
当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选
Use of UIC in QT
错误:EACCES:权限被拒绝,访问“/usr/lib/node_modules”
代码实现MNLM
Dingtalk send message
Just 1000 fans, record it
Common options of tcpdump command: Three
selenium 元素定位方法
千元投影小明Q1 Pro和极米NEW Play谁更好?和哈趣K1比哪款配置更高?
MySQL45讲——学习极客时间MySQL实战45讲笔记—— 05 | 深入浅出索引(下)
Story points vs. human days
[USACO05JAN]Watchcow S(欧拉回路)
【模板】最长公共子序列 (【DP or 贪心】板子)
Penetrate the remote connection database through the Intranet
Stone merging Board [interval DP] (ordinary stone Merging & Ring Stone merging)