摘要: 安装包 Microsoft.AspNetCore.Mvc.NewtonsoftJson public void ConfigureServices(IServiceCollection services) { services.AddControllers().AddNewtonsoftJson() 阅读全文
posted @ 2022-02-10 13:51 chyn 阅读(151) 评论(0) 推荐(0)
摘要: <Project> <PropertyGroup Label="Configuration"> <SpectreMitigation>false</SpectreMitigation> </PropertyGroup> </Project> 加上这个就可以了 阅读全文
posted @ 2022-02-10 13:49 chyn 阅读(110) 评论(0) 推荐(0)
摘要: 对应位数的SSL库要装上,然后添加到系统变量,安装过程中,应该会提示DLL安装到系统路径还是安装路径 阅读全文
posted @ 2022-02-10 13:49 chyn 阅读(45) 评论(0) 推荐(0)
摘要: 一、安装ocelot 建议项目用.net core 5 二、配置路由 { "Routes": [ { "DownstreamPathTemplate": "/", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "1 阅读全文
posted @ 2022-02-10 13:48 chyn 阅读(101) 评论(0) 推荐(0)
摘要: 下载包 microsoft.aspnetcore.mvc.newtonsoftjson ...Services.AddControllers().AddNewtonsoftJson();... 即可 阅读全文
posted @ 2022-02-10 13:46 chyn 阅读(76) 评论(0) 推荐(0)