2020年4月10日
摘要: 1、添加包 Microsoft.AspNetCore.Authentication.JwtBearer 2、在Startup类的ConfigureServices方法里面注入服务: public void ConfigureServices(IServiceCollection services) 阅读全文
posted @ 2020-04-10 12:53 苏上话 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 1、添加Swagger 直接在NuGet里面搜索Swashbuckle.AspNetCore包进行安装: 2、添加服务 在Startup类的ConfigureServices方法里面注入服务: 验证授权和 注释信息 public void ConfigureServices(IServiceColl 阅读全文
posted @ 2020-04-10 10:41 苏上话 阅读(625) 评论(0) 推荐(0) 编辑