当前位置:网站首页>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
边栏推荐
- CSP window
- 不得不会的Oracle数据库知识点(四)
- 12. Go implementation of integer to Roman numeral and leetcode
- [complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
- Advanced C language - pointer 2 - knowledge points sorting
- MySQL winter vacation self-study 2022 12 (1)
- Analysis and solution of lazyinitializationexception
- [cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
猜你喜欢
Recommendation of knowledge base management system
Axure resources and prototype tool Axure RP 9 download
The FISCO bcos console calls the contract and reports an error does not exist
STM32 key light
功能:将主函数中输入的字符串反序存放。例如:输入字符串“abcdefg”,则应输出“gfedcba”。
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
Is user authentication really simple
Eight year test old bird, some suggestions for 1-3 year programmers
NLP Chinese corpus project: large scale Chinese natural language processing corpus
MySQL is installed as a Windows Service
随机推荐
Shell script three swordsman sed
Development and application of fcitx functional plug-ins
Arc 135 supplementary report
Alibaba test engineer with an annual salary of 500000 shares notes: a complete set of written tests of software testing
Global and Chinese market of underwater bags 2022-2028: Research Report on technology, participants, trends, market size and share
Zipper table in data warehouse (compressed storage)
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
How will the complete NFT platform work in 2022? How about its core functions and online time?
MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query
不得不会的Oracle数据库知识点(三)
Solution to the impact of Remote Code Execution Vulnerability of log4j2 component on December 9, 2021
Pair
功能:求出菲波那契数列的前一项与后一项之比的极限的 近似值。例如:当误差为0.0001时,函数值为0.618056。
Global and Chinese market of breast cancer imaging 2022-2028: Research Report on technology, participants, trends, market size and share
Selenium library 4.5.0 keyword explanation (III)
Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
UTS | causal reasoning random intervention based on Reinforcement Learning
A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
[Mongodb] 2. Use mongodb --------- use compass