最近写的swagger文档,要加jwt授权,所以几经google终于搞定了,简简单单几行配置如下:
securityDefinitions: APIKey: type: apiKey name: Authorization in: header security: - APIKey: []