06 2022 档案

asp.net core cookie认证
摘要:asp.net core版本:5.0 客户端:Vue 首先我们看一下服务端代码,在startup类的ConfigureServices函数中添加cookie认证: services.AddAuthentication(CookieAuthenticationDefaults.Authenticati 阅读全文

posted @ 2022-06-30 16:22 itjeff 阅读(265) 评论(0) 推荐(0) 编辑

.net core使用官方CookieAuthentication身份验证
摘要:注入: public IServiceProvider ConfigureServices(IServiceCollection services) { //services.AddJwtAuthorization(Configuration); var types = new[] { typeof 阅读全文

posted @ 2022-06-30 16:21 itjeff 阅读(118) 评论(0) 推荐(0) 编辑

.net core 读取 appsetting.json
摘要:文件 appsetting.json {"Logging": {"IncludeScopes": false,"LogLevel": {"Default": "Warning"}},"ConnectionStrings": {"DefaultConnection": "User ID=sa;Pass 阅读全文

posted @ 2022-06-29 10:26 itjeff 阅读(1207) 评论(0) 推荐(0) 编辑

HTTP重定向出现“正在中止线程”问题
摘要:Response.Redirect 产生的“正在中止线程”错误,将出现 ThreadAbortException 异常。原因:Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管线中的 Application_EndRequest 事件。不执行 Response.End 后面 阅读全文

posted @ 2022-06-23 15:40 itjeff 阅读(85) 评论(0) 推荐(0) 编辑

MySQL报Data too long for column '......' at row 1解决方法
摘要:今天设计了一张表 其中一个字段我设置的类型是 text 类型的 ,按照正常的情况下text 是不限制长度的,因此插入了一段很长的txt内容 ,结果出现了 悲剧性的事情,提示了 数据太长 Data too long for column '......' at row 1 这就很尴尬了,百度了半天,有 阅读全文

posted @ 2022-06-17 16:50 itjeff 阅读(1459) 评论(0) 推荐(0) 编辑

迭代器yield的使用
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace 阅读全文

posted @ 2022-06-15 00:07 itjeff 阅读(33) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示