swagger 去除不想显示的字段

在参数多的时候我们一般会使用新的dto 但是总有意外情况,若某一个字段不想在swagger中展示:

1、@JSONField(serialize = false) (属于fastJson)

2、@@JsonIgnore

posted @ 2020-11-06 14:25  TheRoadOfAttack  阅读(3753)  评论(0)    收藏  举报