swagger文档增加注释显示
This commit is contained in:
parent
18d5bade4b
commit
8cc7b32220
@ -70,6 +70,8 @@ namespace ZR.Admin.WebApi
|
||||
services.AddSwaggerGen(c =>
|
||||
{
|
||||
c.SwaggerDoc("v1", new OpenApiInfo { Title = "ZrAdmin", Version = "v1" });
|
||||
//添加文档注释
|
||||
c.IncludeXmlComments("../ZRAdmin.xml", true);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user