上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 128 下一页
摘要: 原文链接:https://blog.csdn.net/dabusidede/article/details/124858045 内存缓存包: Microsoft.Extensions.Caching.Memory 1.注册内存缓存 services.AddMemoryCache(); 2.基本使用示 阅读全文
posted @ 2024-07-01 11:56 yinghualeihenmei 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/xiongze520/p/14500156.html 今天在项目上遇到一个坑, 在.Net Core中通过ajax向mvc的controller传递对象时,控制器(controller)的方法一直没有进去,百思不得其解, 后面把传递的参数打印 阅读全文
posted @ 2024-07-01 11:14 yinghualeihenmei 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/zls365365/article/details/124162096 前言 以前.NetCore是不内置JSON库的,所以大家都用Newtonsoft的JSON库,而且也确实挺好用的,不过既然官方出了标准库,那更方便更值得我们多用用,至少不用每 阅读全文
posted @ 2024-07-01 10:35 yinghualeihenmei 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/He_lh/article/details/110522231 在 .Net Core3.1 Web的视图获取从后台传来的数据的时候,默认使用的是 UnicodeRanges.BasicLatin进行的编码,所以在前台显示中文,而在查看源码的时候 阅读全文
posted @ 2024-07-01 09:37 yinghualeihenmei 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Services.AddControllers().AddJsonOptions 是一个常用于ASP.NET Core应用程序中配置MVC控制器如何处理JSON的方法。 它允许你添加自定义JSON序列化设置,例如更改日期格式、更改默认的序列化行为等。 以下是如何使用 AddJsonOptions 的 阅读全文
posted @ 2024-06-28 14:05 yinghualeihenmei 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/ZkbFighting/p/12922029.html AddTransient(shuan sen te) 瞬间生命周期 : 每次需要创建一个全新的 AddSigleton(Single ten) 单例进程唯一实例 :每一次请求都是同一个( 阅读全文
posted @ 2024-06-28 11:56 yinghualeihenmei 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/1285026182YUAN/p/17686654.html 以前记录的是在.net framwork中的,是放在global文件中的。现在记录的是在.netcore里的应用,netcore框架里已经没有global文件了。 源码:https 阅读全文
posted @ 2024-06-28 10:50 yinghualeihenmei 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/qq_18932003/article/details/119975014 匹配单个路由匹配固定的单个路径 endpoints.MapControllerRoute( name: "AA", pattern: "About", defaults: 阅读全文
posted @ 2024-06-28 10:04 yinghualeihenmei 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/shanghaibao123/article/details/124116749 下载NuGet包依赖 Microsoft.Extensions.Http 在启动类中配置启用https builder.Services.AddHttpClient 阅读全文
posted @ 2024-06-27 16:35 yinghualeihenmei 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/yzj_xiaoyue/article/details/79367901 在 .Net Core Web的视图获取从后台传来的数据的时候,默认使用的是 UnicodeRanges.BasicLatin进行的编码,所以在前台显示中文,而在查看源码的 阅读全文
posted @ 2024-06-27 15:43 yinghualeihenmei 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 128 下一页