当前位置:网站首页>配置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
边栏推荐
- 软件架构简介
- OSSCore 开源解决方案介绍
- 力扣练习——64 最长和谐子序列
- LeetCode_152_乘积最大子数组
- 做自媒体月入几万?博主们都在用的几个自媒体工具
- A case of violent parameter tuning in machine learning
- 【机器学习】浅谈正规方程法&梯度下降
- 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
- Redis常用命令
猜你喜欢
态路小课堂丨如何为CXP光模块选择光纤跳线?
什么是幂等性?四种接口幂等性方案详解!
【勇敢饭饭,不怕刷题之链表】链表反转的几种情况
皕杰报表在传参乱码
即时零售业态下如何实现自动做账?
模块九 - 设计电商秒杀系统
为什么Redis很快
Analysis of the implementation principle of UUID from the perspective of source code
mpf6_Time Series Data_quandl_更正kernel PCA_AIC_BIC_trend_log_return_seasonal_decompose_sARIMAx_ADFull
ENVI 5.3软件安装包和安装教程
随机推荐
振弦传感器及核心VM系列振弦采集模块
codevs 2370 Small room tree (LCA)
快速上手,征服三种不同分布式架构调用方案
Module 9 - Designing an e-commerce seckill system
力扣练习——58 验证二叉搜索树
暑期总结4
Analysis of the implementation principle of UUID from the perspective of source code
网络套接字(UDP和TCP编程)
Chapter 22 Source Code File REST API Reference (4)
孩子自律性不够?猿辅导:计划表要注意“留白”给孩子更多掌控感
From the product dimension, why can't we fully trust Layer2?
flask-restplus接口地址404问题
A case of violent parameter tuning in machine learning
Does your child lack self-discipline?Ape Counseling: Pay attention to "blank" in the schedule to give children more control
Licking Exercise - 60 Maximum key-value sum of binary search subtrees
力扣练习——56 寻找右区间
Kyligence 通过 SOC 2 Type II 审计,以可信赖的企业级产品服务全球客户
英特尔推送20220809 CPU微码更新 修补Intel-SA-00657安全漏洞
从脚本到剪辑,影像大师亲授的后期制作秘籍
使用.NET简单实现一个Redis的高性能克隆版(六)