当前位置:网站首页>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
边栏推荐
- PyQt5_QScrollArea内容保存成图片
- 无主灯设计:如何让智能照明更加「智能」?
- In 2021, the global TCB adapter revenue was about $93 million, and it is expected to reach $315.5 million in 2028
- Story point vs. Human Sky
- 默认插槽,具名插槽,作用域插槽
- 大家信夫一站式信用平台让信用场景“用起来
- Use of UIC in QT
- Three talking about exception -- error handling
- 线性dp求解 最长子序列 —— 小题三则
- Multi rotor aircraft control using PID and LQR controllers
猜你喜欢
随机推荐
使用BLoC 构建 Flutter的页面实例
Getting started with QT - making a simple calculator
石子合并板子【区间DP】(普通石子合并 & 环形石子合并)
[USACO05JAN]Watchcow S(欧拉回路)
Qt如何设置固定大小
[technology development-22]: rapid overview of the application and development of network and communication technology-2-communication Technology
BeanUtils -- shallow copy -- example / principle
How to use SAP's metadata framework (MDF) to build custom business rules?
Téléchargement par navigateur
Astro learning notes
Browser driven Download
selenium 在pycharm中安装selenium
[template] longest common subsequence ([DP or greedy] board)
给Android程序员的一些面试建议「建议收藏」
Data consistency between redis and database
线性dp求解 最长子序列 —— 小题三则
uniapp小程序 subPackages分包配置
Halcon extract orange (Orange)
Subcontracting configuration of uniapp applet subpackages
故事點 vs. 人天









