当前位置:网站首页>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
边栏推荐
- Chapter I Oracle database in memory related concepts (Continued) (im-1.2)
- C语言——自定义类型
- Realize data value through streaming data integration (2)
- 997. Square of ordered array (array)
- Sim Api User Guide(5)
- 第二章 In-Memory 体系结构 (IM-2.2)
- Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
- shell脚本免交互
- 1、两数之和(哈希表)
- MapReduce core and foundation demo
猜你喜欢
Solution architect's small bag - 5 types of architecture diagrams
JUC concurrent programming 09 -- source code analysis of condition implementation
Net start MySQL MySQL service is starting MySQL service failed to start. The service did not report any errors.
Redis design and Implementation
SSH利用私钥无密钥连接服务器踩坑实录
ARM调试(1):两种在keil中实现printf重定向到串口的方法
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
JVM——》常用参数
一文看懂 LSTM(Long Short-Term Memory)
得到知识服务app原型设计比较与实践
随机推荐
Juc并发编程06——深入剖析队列同步器AQS源码
Leetcode22:括号生成
349、两个数组的交集
Sim Api User Guide(5)
242. Valid Letter ectopic words (hash table)
SQL tuning series - SQL performance methodology
Jerry's factors that usually affect CPU performance test results are: [article]
2022茶艺师(初级)考试试题模拟考试平台操作
CSP certification 202203-2 travel plan (multiple solutions)
997、有序数组的平方(数组)
2022年广东省安全员A证第三批(主要负责人)考试试题及答案
Yarn core parameter configuration
第二章 Oracle Database In-Memory 体系结构(上) (IM-2.1)
Art template template engine
【无标题】
MapReduce compression
707、设计链表(链表)
得到知识服务app原型设计比较与实践
454、四数之和(哈希表)
基于PyQt5实现弹出任务进度条功能示例