protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register);//这个路由注册应该优先注册 RouteConfig.RegisterRoutes(RouteTable.Routes); }
同一个项目中使用MVC控制器和WebAPI控制器
猜你喜欢
转载自www.cnblogs.com/hofmann/p/12764930.html
今日推荐
周排行