首页 > Windows开发 > 详细

C# .NET Core实现快速Web API开发

时间:2020-09-01 12:35:58      阅读:79      评论:0      收藏:0      [点我收藏+]

https://github.com/BobinYang/NetCoreWebAPI_Demo/

视频地址:https://www.bilibili.com/video/BV11E411n74a

使用net core3.1 使用JSON

// This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddControllers()
            .AddNewtonsoftJson(options =>
                {
                    // Use the default property (不改变元数据的大小写) casing
                    options.SerializerSettings.ContractResolver = new DefaultContractResolver();
                });
        }

C# .NET Core实现快速Web API开发

原文:https://www.cnblogs.com/springsnow/p/13595167.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!