NetCoreAPI添加Swagger
2021-01-24 02:14
标签:ash bin web api com start esc ext art developer NetCoreAPI添加Swagger 标签:ash bin web api com start esc ext art developer 原文地址:https://www.cnblogs.com/nnnnnn/p/12058484.htmlpublic class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
services.AddOptions();
services.Configure(Configuration.GetSection("AppSettings"));
services.AddHostedService
上一篇:远程开机+windows远程桌面
下一篇:C# Newtonsoft.Json.JsonReaderException:“Could not convert string to decimal:
文章标题:NetCoreAPI添加Swagger
文章链接:http://soscw.com/index.php/essay/46136.html