解决方法: 1:安装Microsoft.AspNetCore.Mvc.NewtonsoftJson 包 2:在Startup类中找到ConfigureServices添加services.AddNewtonsoftJson();