当前位置:网站首页>配置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
边栏推荐
- Alibaba最新神作!耗时182天肝出来1015页分布式全栈手册太香了
- 项目部署、
- codevs 2370 小机房的树 (LCA)
- 网络套接字(UDP和TCP编程)
- LeetCode50天刷题计划(Day 19—— 在排序数组中查找元素的第一个和最后一个位置(9.10-10.40)
- 力扣练习——58 验证二叉搜索树
- 基于UiAutomator2+PageObject模式开展APP自动化测试实战
- std::move()
- LeetCode50天刷题计划(Day 18—— 搜索旋转排序数组(8.50-12.00)
- Licking Exercise - 63 Find all anagrams in a string
猜你喜欢
随机推荐
软件架构简介
ENVI 5.3软件安装包和安装教程
Analysis of the implementation principle of UUID from the perspective of source code
HDU 4135: Co-prime (the principle of inclusion and exclusion)
Programmers pursue technology to consolidate basic learning route suggestions
LeetCode 61. 旋转链表
leetcode 823. Binary Trees With Factors(因子二叉树)
Intel pushes 20220809 CPU microcode update to patch Intel-SA-00657 security vulnerability
A case of violent parameter tuning in machine learning
不止跑路,拯救误操作rm -rf /*的小伙儿
使用.NET简单实现一个Redis的高性能克隆版(六)
【小程序 | 启航篇】一文打通任督二脉
力扣练习——62 有效的数独
LeetCode 362. Design Hit Counter(计数器)
中小规模网站架构
老板加薪!看我做的WPF Loading!!!
LeetCode 138. 复制带随机指针的链表
Do self-media monthly income tens of thousands?Several self-media tools that bloggers are using
AUTOCAD - reducing spline curve control points, the advanced CAD practice (3)
项目部署、
![[E-commerce operation] Do you really understand social media marketing (SMM)?](/img/5b/6682c613305deb3dc15401077d38a0.png)








