Net项目添加 WebAPI 1.新建一个 WebApiConfig.cs 2.没有Global.asax.cs文件的添加 一个名称是这个的类 继承 System.Web.HttpApplica ...