当前位置:网站首页>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
边栏推荐
- NLP pre training technology development
- (Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes
- [cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept
- Selenium library 4.5.0 keyword explanation (II)
- What is the GPM scheduler for go?
- Data storage - interview questions
- Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
- STM32 GPIO CSDN creative punch in
- HR disgusted interview behavior
- What is the difference between NFT, SFT and dnft? How to build NFT platform applications?
猜你喜欢
Correlation analysis summary
From functional testing to automated testing, how did I successfully transform my salary to 15K +?
MySQL winter vacation self-study 2022 12 (1)
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
What is the GPM scheduler for go?
It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence
Vscode regular match replace console log(.*)
Iclr2022: how does AI recognize "things I haven't seen"?
ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
随机推荐
A dichotomy of Valentine's Day
Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
Joint examination of six provinces 2017
Is user authentication really simple
P3371 [template] single source shortest path (weakened version)
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Axure resources and prototype tool Axure RP 9 download
1214 print diamond
Unity elementary case notes of angry birds Siki college 1-6
Celebrate the new year | Suihua fire rescue detachment has wonderful cultural activities during the Spring Festival
What is the potential of pocket network, which is favored by well-known investors?
The culprit of unrestrained consumption -- Summary
12. Go implementation of integer to Roman numeral and leetcode
Zipper table in data warehouse (compressed storage)
Wechat official account and synchronization assistant
2020.2.14
不得不会的Oracle数据库知识点(四)
Qtcharts notes (V) scatter diagram qscatterseries
不得不会的Oracle数据库知识点(二)