上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 直接上干货了 1:WebApi后端代码 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Threading.Tasks; 5 6 namespace ZRFCoreTest 阅读全文
posted @ 2020-07-30 15:39 天天向上518 阅读(5205) 评论(5) 推荐(1) 编辑
摘要: 先小结一下: 缓存策略: [ResponseCache(CacheProfileName ="default30")] 直接使用缓存,30秒过期: [ResponseCache(Duration = 30)] 30秒过期,并且是会根据 自定义的参数uid,uname来决定的 [ResponseCac 阅读全文
posted @ 2020-07-24 17:25 天天向上518 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1888) 评论(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 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 好久没有使用MongoDB了,重新测试使用,版本不一样之前很多方法都使用不了了,下面为部分测试,下次再来更新测试 测试中使用的命令 // 新增读写的用户 db.createUser({ user:'fengge', pwd:'FEG', roles:["readWrite"] }) //查询去掉 系 阅读全文
posted @ 2020-07-10 17:02 天天向上518 阅读(358) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-05-08 13:37 天天向上518 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 自己学习使用笔记 public async Task<IEnumerable<GetExamSubjInfoListTemp>> GetExamSubjectMainInfoList(string uni_id) { string sql = @" SELECT T.ttm_id, T.ttd_id 阅读全文
posted @ 2020-05-07 17:24 天天向上518 阅读(700) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-04-12 16:34 天天向上518 阅读(45) 评论(0) 推荐(0) 编辑
摘要: Castel动态代理的简单的使用: 阅读全文
posted @ 2020-04-08 00:09 天天向上518 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 下面只是做一个简单的测试: 1:定义好appsetting.Json文件的配置信息如下: { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetim 阅读全文
posted @ 2020-03-26 23:05 天天向上518 阅读(1629) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页