当前位置:网站首页>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
边栏推荐
- ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
- AI Challenger 2018 text mining competition related solutions and code summary
- [prefix and notes] prefix and introduction and use
- A method to solve Bert long text matching
- MySQL winter vacation self-study 2022 12 (2)
- 网上的低佣金链接安全吗?招商证券怎么开户?
- BBS forum recommendation
- STM32 key light
- The difference between objects and objects
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
猜你喜欢

Double efficiency. Six easy-to-use pychar plug-ins are recommended

Iclr2022: how does AI recognize "things I haven't seen"?

Gauss elimination method and template code

It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something

Similarities and differences of text similarity between Jaccard and cosine

(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises
![[NLP] text classification still stays at Bert? Duality is too strong than learning framework](/img/49/1ff6025bdb0445e5638c1451e0b267.jpg)
[NLP] text classification still stays at Bert? Duality is too strong than learning framework

Makefile judge custom variables

Shell script three swordsman sed
![[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections](/img/c6/3dc7d01600f6713afdbb4cf3df5238.jpg)
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
随机推荐
A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders
STM32 key light
[PHP basics] session basic knowledge, application case code and attack and defense
Axure resources and prototype tool Axure RP 9 download
How to be a professional software testing engineer? Listen to the byte five year old test
Subgraph isomorphism -subgraph isomorphism
[CSDN Q & A] experience and suggestions
What insurance products should be bought for the elderly?
8. Go implementation of string conversion integer (ATOI) and leetcode
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
[Mongodb] 2. Use mongodb --------- use compass
2022 Software Test Engineer skill list, please check
【leetcode】300. Longest increasing subsequence (dynamic programming, dichotomy)
UTS | causal reasoning random intervention based on Reinforcement Learning
Sorry, Tencent I also refused
[prefix and notes] prefix and introduction and use
MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query
功能:编写函数fun求s=1^k+2^k +3^k + ......+N^k的值, (1的K次方到N的K次方的累加和)。
12. Go implementation of integer to Roman numeral and leetcode
How to trade spot gold safely?