当前位置:网站首页>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
边栏推荐
- [PHP basics] cookie basics, application case code and attack and defense
- Iclr2022: how does AI recognize "things I haven't seen"?
- Briefly understand the operation mode of developing NFT platform
- A-Frame虚拟现实开发入门
- Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
- Self study software testing. To what extent can you go out and find a job?
- Regular expressions and text processors for shell programming
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- OS interrupt mechanism and interrupt handler
- 不得不会的Oracle数据库知识点(四)
猜你喜欢

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!

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

(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises

Generic

STM32 key light

Idea a method for starting multiple instances of a service
![P3371 [template] single source shortest path (weakened version)](/img/c5/bcb22e1ea573253005e56ebbd73bb7.jpg)
P3371 [template] single source shortest path (weakened version)
![Several ways to set up a blog locally [attach relevant software download links]](/img/2f/51a09d9ef71065319ed90306517854.jpg)
Several ways to set up a blog locally [attach relevant software download links]

What is regression testing? Talk about regression testing in the eyes of Ali Test Engineers
随机推荐
Selenium library 4.5.0 keyword explanation (II)
What is the Valentine's Day gift given by the operator to the product?
Stock price forecast
Regular expression of shell script value
Struct in linked list
Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
[leetcode] interview question 17.08 Circus tower
HR disgusted interview behavior
swagger中响应参数为Boolean或是integer如何设置响应描述信息
Unity elementary case notes of angry birds Siki college 1-6
Global and Chinese market of underwater bags 2022-2028: Research Report on technology, participants, trends, market size and share
删除所有值为y的元素。数组元素中的值和y的值由主函数通过键盘输入。
Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Optimization of for loop
What is the potential of pocket network, which is favored by well-known investors?
Social network analysis -social network analysis
It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence
挖财帮个人开的证券账户安全吗?是不是有套路
Is it really possible that the monthly salary is 3K and the monthly salary is 15K?
8. Go implementation of string conversion integer (ATOI) and leetcode