当前位置:网站首页>配置swagger
配置swagger
2022-08-10 11:10:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
1.引用jar包
<!--swagger-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.5</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.5</version>2.
<bean class="springfox.documentation.swagger2.configuration.Swagger2DocumentationConfiguration" id="swagger2Config"/>
<mvc:resources location="classpath:/META-INF/resources/" mapping="swagger-ui.html"/>
<mvc:resources location="classpath:/META-INF/resources/webjars/" mapping="/webjars/**"/>3.输入http://localhost:8080/swagger-ui.html
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/105613.html原文链接:https://javaforall.cn
边栏推荐
- VSCode remote connection server error: Could not establish connection to "xxxxxx" possible error reasons and solutions
- Since the media hot style title how to write?Taught you how to write the title
- How to join We Media, learn about these 5 monetization modes, and make your account quickly monetize
- 力扣练习——56 寻找右区间
- 基于UiAutomator2+PageObject模式开展APP自动化测试实战
- 即时零售业态下如何实现自动做账?
- 机器学习之暴力调参案例
- ENVI 5.3软件安装包和安装教程
- 【小程序 | 启航篇】一文打通任督二脉
- A little self-deprecating deconstruction about farmers "code"
猜你喜欢
随机推荐
不止跑路,拯救误操作rm -rf /*的小伙儿
HDU 4135:Co-prime (容斥原理)
Programmers pursue technology to consolidate basic learning route suggestions
HDU 6040 Hints of sd0061 (技巧)
Analysis of the name matching process between the LCD driver and the device (Tiny4412)
HDU 4372:Count the Buildings (Stirling数)
codevs 2370 小机房的树 (LCA)
Network Fundamentals (Section 1)
Licking Exercise - 58 Verifying Binary Search Trees
老板加薪!看我做的WPF Loading!!!
基于UiAutomator2+PageObject模式开展APP自动化测试实战
L2 applications from a product perspective: why is it a playground?
[Brave food, not afraid to write the linked list] The problem of the penultimate node of the linked list
今天面了个腾讯拿38K出来的大佬,让我见识到了基础的天花板
力扣练习——61 根据字符出现频率排序
力扣练习——62 有效的数独
[Brave food, not afraid of the linked list of brushing questions] Merging of ordered linked lists
Redis设计与实现
项目部署、
【勇敢饭饭,不怕刷题之链表】有序链表的合并









