"UseSwagger":"false"
"UseSwagger":"true"
if (Configuration.GetSection("UseSwagger").Value == "true")
{
services.AddSwaggerGen();
}
if (Configuration.GetSection("UseSwagger").Value == "true")
{
app.UseSwagger();
app.UseSwaggerUI();
}
ENV ASPNETCORE_ENVIRONMENT=Development
原文:https://www.cnblogs.com/Jackyye/p/13070587.html