当前位置:网站首页>Swagger2 quick start and use
Swagger2 quick start and use
2022-07-04 00:35:00 【XuXinStu】
What is? Swagger?
- Front and rear integrated joint debugging , Front end or back end can't do it “ Timely consultation , Settle as soon as possible ”, Finally, the problem is concentrated
- Swagger Solve this problem management API Interface Generate API file + test (postman)
requirement :SpringBoot + jdk1.8 above
Start using
1. Import dependence Note that version :2.9.2
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
2. Write configuration classes
@Configuration // Configuration class
@EnableSwagger2// Turn on Swagger2 Automatic configuration of
public class SwaggerConfig {
}
3. Access test :http://localhost:8080/swagger-ui.html , You can see swagger The interface of
4. To configure Swagger
Update after finishing
边栏推荐
- No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
- Wechat official account and synchronization assistant
- Is the securities account opened by Caicai for individuals safe? Is there a routine
- AI Challenger 2018 text mining competition related solutions and code summary
- [prefix and notes] prefix and introduction and use
- Test the influence of influent swacth on the electromagnetic coil of quartz meter
- [complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
- Analysis and solution of lazyinitializationexception
- 1214 print diamond
- Social network analysis -social network analysis
猜你喜欢

Analysis: misunderstanding of choosing WMS warehouse management system

Entropy and full connection layer

What is regression testing? Talk about regression testing in the eyes of Ali Test Engineers

Sorry, Tencent I also refused

功能:求5行5列矩阵的主、副对角线上元素之和。注意, 两条对角线相交的元素只加一次。例如:主函数中给出的矩阵的两条对角线的和为45。
![[Mongodb] 2. Use mongodb --------- use compass](/img/d5/0eb7dd4c407fbf2e9ba1b175f5424d.jpg)
[Mongodb] 2. Use mongodb --------- use compass

Is it really possible that the monthly salary is 3K and the monthly salary is 15K?

Alibaba test engineer with an annual salary of 500000 shares notes: a complete set of written tests of software testing

Interview script of Software Test Engineer

Collation of the most complete Chinese naturallanguageprocessing data sets, platforms and tools
随机推荐
网上的低佣金链接安全吗?招商证券怎么开户?
Pair
The FISCO bcos console calls the contract and reports an error does not exist
STM32 GPIO CSDN creative punch in
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
Selenium library 4.5.0 keyword explanation (II)
打印菱形图案
老姜的特点
Why use get/set instead of exposing properties
Zipper table in data warehouse (compressed storage)
Celebrate the new year | Suihua fire rescue detachment has wonderful cultural activities during the Spring Festival
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
Axure resources and prototype tool Axure RP 9 download
P3371 [template] single source shortest path (weakened version)
Similarities and differences of text similarity between Jaccard and cosine
Anomalies seen during the interview
Entropy and full connection layer
On covariance of array and wildcard of generic type
功能:将主函数中输入的字符串反序存放。例如:输入字符串“abcdefg”,则应输出“gfedcba”。
The difference between objects and objects