WCF配置Swagger

添加包 Install-Package SwaggerWcf 在Global.asax文件中添加路由 RouteTable.Routes.Add(new ServiceRoute("Swagger", new WebServiceHostFactory(), typeof(SwaggerWcfEndpoint))); 上面代碼中的"Swagger"就是訪問地址 添加配置1 在Web.config的
相關文章
相關標籤/搜索