当前位置:网站首页>Swagger2 自定义参数注解如何不显示
Swagger2 自定义参数注解如何不显示
2022-04-23 10:24:00 【---清心寡欲---】
由于代码增加了自定义注解用于解析用户信息,但是增加注解后,Swagger把自定义注解的参数也显示出来了(swagger版本>2.9.2),如下图:
自定义注解

Swagger请求显示的参数

解决办法:
修改Swagger的Config信息
ignoredParameterTypes中的类型,写自定义注解的类名

版权声明
本文为[---清心寡欲---]所创,转载请带上原文链接,感谢
https://blog.csdn.net/ying456baby/article/details/121290638
边栏推荐
- JUC concurrent programming 07 -- is fair lock really fair (source code analysis)
- Shell script interaction free
- LeetCode-608. 树节点
- 454. Sum of four numbers (hash table)
- Sim Api User Guide(6)
- Exercise questions and simulation test of refrigeration and air conditioning equipment operation test in 2022
- 2022年广东省安全员A证第三批(主要负责人)考试试题及答案
- SQL调优系列文章之—SQL性能方法论
- 通过流式数据集成实现数据价值(4)-流数据管道
- ansible 云计算 自动化 命令行精简版
猜你喜欢
MapReduce core and foundation demo

0704、ansible----01

Reading integrity monitoring techniques for vision navigation systems - 3 background
![[provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)](/img/e4/3c47edbc3241ba86f10a1ac8a963fd.png)
[provincial election joint examination 2022 d2t1] card (state compression DP, FWT convolution)

shell脚本免交互

101. Symmetric Tree

Net start MySQL MySQL service is starting MySQL service failed to start. The service did not report any errors.

C语言——自定义类型

微信小程序简介、发展史、小程序的优点、申请账号、开发工具、初识wxml文件和wxss文件

2022年广东省安全员A证第三批(主要负责人)考试试题及答案
随机推荐
997. Square of ordered array (array)
Sim Api User Guide(8)
1、两数之和(哈希表)
What are the system events of Jerry's [chapter]
解决VMware卸载后再安装出现的问题
DBA常用SQL语句(6)- 日常管理
Juc并发编程06——深入剖析队列同步器AQS源码
Jerry sometimes finds that the memory has been tampered with, but there is no exception. How should he find it? [chapter]
第二章 In-Memory 体系结构 (IM-2.2)
Chapter II in memory architecture (im-2.2)
Jerry's users how to handle events in the simplest way [chapter]
Common SQL statements of DBA (6) - daily management
lnmp的配置
202、快乐数
[untitled]
209. Subarray with the smallest length (array)
Windows installs redis and sets the redis service to start automatically
Realize data value through streaming data integration (3) - real-time continuous data collection
第120章 SQL函数 ROUND
19. Delete the penultimate node of the linked list (linked list)