当前位置:网站首页>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
边栏推荐
- Data mining vs Machine Learning: what is the difference between them? Which is more suitable for you to learn
- UTS | causal reasoning random intervention based on Reinforcement Learning
- [PHP basics] cookie basics, application case code and attack and defense
- Five high-frequency questions were selected from the 200 questions raised by 3000 test engineers
- NLP Chinese corpus project: large scale Chinese natural language processing corpus
- NLP pre training technology development
- I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?
- MySQL winter vacation self-study 2022 12 (1)
- Interview script of Software Test Engineer
- Social network analysis -social network analysis
猜你喜欢

What is the Valentine's Day gift given by the operator to the product?
![[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!](/img/3f/75b3125f8779e6cf9467a30fd7eeb4.jpg)
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!

A method to solve Bert long text matching
![[C language] break and continue in switch statement](/img/ae/5967fefcf3262c9d3096e5c7d644fd.jpg)
[C language] break and continue in switch statement

From functional testing to automated testing, how did I successfully transform my salary to 15K +?

功能:编写函数fun求s=1^k+2^k +3^k + ......+N^k的值, (1的K次方到N的K次方的累加和)。

The FISCO bcos console calls the contract and reports an error does not exist

Bodong medical sprint Hong Kong stocks: a 9-month loss of 200million Hillhouse and Philips are shareholders

What does redis do? Redis often practices grammar every day
![[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!](/img/28/fc05f2e8d53cf81fd061c799090022.jpg)
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
随机推荐
Gauss elimination method and template code
Is the low commission link on the internet safe? How to open an account for China Merchants Securities?
Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
The culprit of unrestrained consumption -- Summary
[PHP basics] session basic knowledge, application case code and attack and defense
Struct in linked list
On the day when 28K joined Huawei testing post, I cried: everything I have done in these five months is worth it
Global and Chinese markets for coronary artery disease treatment devices 2022-2028: Research Report on technology, participants, trends, market size and share
Analysis and solution of lazyinitializationexception
Is user authentication really simple
What is regression testing? Talk about regression testing in the eyes of Ali Test Engineers
想请教一下,十大劵商如何开户?在线开户是安全么?
2022 system integration project management engineer examination knowledge points: software development model
swagger中响应参数为Boolean或是integer如何设置响应描述信息
What does redis do? Redis often practices grammar every day
Is it really possible that the monthly salary is 3K and the monthly salary is 15K?
Is the securities account opened by Caicai for individuals safe? Is there a routine
Selenium library 4.5.0 keyword explanation (4)
Sorry, Tencent I also refused
挖财帮个人开的证券账户安全吗?是不是有套路