摘要: 1:导入NuGet包 Microsoft.AspNetCore.Authentication.JwtBearer 2:配置 jwt相关信息 3:在 startUp中 1 public void ConfigureServices(IServiceCollection services){ 2 #re 阅读全文
posted @ 2020-07-23 20:44 天天向上518 阅读(1889) 评论(6) 推荐(1) 编辑
摘要: 个人测试环境为:Asp.net coe 3.1 WebApi 1:封装自定义的cacheHelper帮助类,部分代码 1 public static void SetCacheByFile<T>(string key, T model) 2 { 3 using (ICacheEntry entry 阅读全文
posted @ 2020-07-23 14:58 天天向上518 阅读(644) 评论(0) 推荐(0) 编辑