swagger api文档添加jwt授权配置

 最近写的swagger文档,要加jwt授权,所以几经google终于搞定了,简简单单几行配置如下:

securityDefinitions:
  APIKey:
    type: apiKey
    name: Authorization
    in: header
security:
  - APIKey: []

原文地址:https://www.cnblogs.com/vipzhou/p/7008342.html