liany920

导航

.net core 6.0 Program里如何设置原样输出

在使用.net core 6.0时,后台Swagger想要使获取到的字段首字母大小写不改变,需要在Program里写一段原样输出的代码: 首先要在API里下载两个程序安装包: 1.Microsoft.AspNetCore.Mvc.NewtonsoftJson 2.Newtonsoft.Json 点击

posted on 2024-02-28 22:00  练练练  阅读(19)  评论(0编辑  收藏  举报