冠军篮球经理2妖人,网上灵堂,sjm厉旭与宋茜接吻
using system.web.http; using system.web.http.cors; using system.net.http.headers; namespace webapi { public static class webapiconfig { public static void register(httpconfiguration config) { //跨域配置 config.enablecors(new enablecorsattribute("*", "*", "*")); // web api 配置和服务 config.formatters.jsonformatter.serializersettings.datetimezonehandling = newtonsoft.json.datetimezonehandling.local;// convert all datetime to utc config.formatters.jsonformatter.supportedmediatypes.add(new mediatypeheadervalue("text/html")); config.formatters.jsonformatter.supportedmediatypes.add(new mediatypeheadervalue("text/xml")); config.formatters.jsonformatter.supportedmediatypes.add(new mediatypeheadervalue("text/json")); // web api 路由 config.maphttpattributeroutes(); config.routes.maphttproute( name: "defaultapi", routetemplate: "api/{controller}/{id}", defaults: new { id = routeparameter.optional } ); } } }
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论