当前位置:网站首页>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
边栏推荐
- The FISCO bcos console calls the contract and reports an error does not exist
- Selenium library 4.5.0 keyword explanation (4)
- The culprit of unrestrained consumption -- Summary
- STM32 GPIO CSDN creative punch in
- For loop
- [error record] configure NDK header file path in Visual Studio
- Collation of the most complete Chinese naturallanguageprocessing data sets, platforms and tools
- [error record] configure NDK header file path in Visual Studio (three header file paths of NDK | ASM header file path selection related to CPU architecture)
- [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-
- Subgraph isomorphism -subgraph isomorphism
猜你喜欢
Celebrate the new year | Suihua fire rescue detachment has wonderful cultural activities during the Spring Festival
Unity elementary case notes of angry birds Siki college 1-6
Regular expressions and text processors for shell programming
Recommendation of knowledge base management system
Qtcharts notes (V) scatter diagram qscatterseries
Yyds dry goods inventory three JS source code interpretation - getobjectbyproperty method
Entropy and full connection layer
[about text classification trick] things you don't know
Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
Test the influence of influent swacth on the electromagnetic coil of quartz meter
随机推荐
P3371 [template] single source shortest path (weakened version)
Optimization of for loop
NLP Chinese corpus project: large scale Chinese natural language processing corpus
Vscode regular match replace console log(.*)
Pair
HR disgusted interview behavior
Why use get/set instead of exposing properties
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
A method to solve Bert long text matching
Global and Chinese markets for blood and liquid heating devices 2022-2028: Research Report on technology, participants, trends, market size and share
UTS | causal reasoning random intervention based on Reinforcement Learning
From functools import reduce -- see the use of reduce function from typical examples
(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises
老姜的特点
[error record] configure NDK header file path in Visual Studio
功能:求5行5列矩阵的主、副对角线上元素之和。注意, 两条对角线相交的元素只加一次。例如:主函数中给出的矩阵的两条对角线的和为45。
Understanding of Radix
It is forbidden to splice SQL in code
挖财帮个人开的证券账户安全吗?是不是有套路
system. Exit (0) and system exit(1)