当前位置:网站首页>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
边栏推荐
- Redis design and Implementation
- DBA common SQL statements (2) - SGA and PGA
- IDEA——》每次启动都会Indexing或 scanning files to index
- Configuration of LNMP
- 定义链表(链表)
- 景联文科技—专业数据标注公司和智能数据标注平台
- 链表相交(链表)
- 一文看懂 LSTM(Long Short-Term Memory)
- Sim Api User Guide(8)
- Zhengda international explains what the Dow Jones industrial index is?
猜你喜欢
随机推荐
利用多线程按顺序连续输出abc10次
Redis design and Implementation
Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022
What if Jerry's function to locate the corresponding address is not accurate sometimes? [chapter]
Sim Api User Guide(6)
242、有效字母异位词(哈希表)
LeetCode 1249. Minimum remove to make valid parents - FB high frequency question 1
24、两两交换链表中的节点(链表)
Art template template engine
/etc/shadow可以破解吗?
JUC concurrent programming 06 -- in-depth analysis of AQS source code of queue synchronizer
C语言——自定义类型
Sim Api User Guide(8)
C language - custom type
142. Circular linked list||
Operation of 2022 tea artist (primary) test question simulation test platform
Reading integrity monitoring techniques for vision navigation systems - 3 background
微信小程序简介、发展史、小程序的优点、申请账号、开发工具、初识wxml文件和wxss文件
Jerry's factors that usually affect CPU performance test results are: [article]
997、有序数组的平方(数组)






