.net中swagger忽略某些字段

需要忽略的字段上用特性

[System.Text.Json.Serialization.JsonIgnore]

例如:

 

posted @ 2020-11-30 16:29  清枫林  阅读(2041)  评论(0编辑  收藏  举报