当前位置:网站首页>配置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
边栏推荐
- LeetCode50天刷题计划(Day 19—— 在排序数组中查找元素的第一个和最后一个位置(9.10-10.40)
- codevs 2370 小机房的树 (LCA)
- LeetCode50天刷题计划(Day 17—— 下一个序列(14.50-16.30)
- 老板加薪!看我做的WPF Loading!!!
- Network Fundamentals (Section 1)
- APP automation testing practice based on UiAutomator2+PageObject mode
- HDU 4135: Co-prime (the principle of inclusion and exclusion)
- blocking non-blocking poll mechanism asynchronous
- 振弦传感器及核心VM系列振弦采集模块
- mpf6_Time Series Data_quandl_更正kernel PCA_AIC_BIC_trend_log_return_seasonal_decompose_sARIMAx_ADFull
猜你喜欢
Kyligence 通过 SOC 2 Type II 审计,以可信赖的企业级产品服务全球客户
OPNsense安装配置Zenarmor
模块九 - 设计电商秒杀系统
建校仅11年就入选“双一流” ,这所高校是凭什么做到的?
什么是幂等性?四种接口幂等性方案详解!
【电商运营】你真的了解社交媒体营销(SMM)吗?
Module 9 - Designing an e-commerce seckill system
Weilai-software development engineer side record
LeetCode50天刷题计划(Day 19—— 在排序数组中查找元素的第一个和最后一个位置(9.10-10.40)
项目部署、
随机推荐
How to join We Media, learn about these 5 monetization modes, and make your account quickly monetize
10 个 Reduce 常用“奇技淫巧”
L2 applications from a product perspective: why is it a playground?
StoneDB Document Bug Hunting Season 1
孩子自律性不够?猿辅导:计划表要注意“留白”给孩子更多掌控感
使用哈工大LTP测试分词并且增加自定义字典
LeetCode 82. 删除排序链表中的重复元素 II
3款不同类型的自媒体免费工具,有效提高创作、运营效率
英特尔推送20220809 CPU微码更新 修补Intel-SA-00657安全漏洞
关于振弦采集模块及采集仪振弦频率值准确率的问题
2022年裁员潮,失业程序员何去何从?
Centos7环境使用Mysql离线安装包安装Mysql5.7
皕杰报表在传参乱码
POJ 1026 Cipher (Permutation Groups)
使用JMeter进行MySQL的压力测试
std::move()
Centos7 environment uses Mysql offline installation package to install Mysql5.7
Hangdian Multi-School-Loop-(uncertainty greedy + line segment tree)
LeetCode_443_压缩字符串
Buckle Exercise - 61 Sort by frequency of characters