最近写的swagger文档,要加jwt授权,所以几经google终于搞定了,简简单单几行配置如下: securityDefinitions: APIKey: type: apiKey name: Authorization in: header security: - APIKey: [] 来源:https://www.cnblogs.com/vipzhou/p/7008342.html 标签 swagger