调整swagger配置

This commit is contained in:
18942506660
2023-10-30 16:51:15 +08:00
parent 9c7d7b9b2b
commit 6bfd990b6c

View File

@@ -131,7 +131,7 @@ namespace WMS.Web.Repositories.DependencyInjection
#region xml信息 #region xml信息
// 使用反射获取xml文件。并构造出文件的路径 // 使用反射获取xml文件。并构造出文件的路径
//// 启用xml注释. 该方法第二个参数启用控制器的注释默认为false. //// 启用xml注释. 该方法第二个参数启用控制器的注释默认为false.
foreach (var file in Directory.GetFiles(AppContext.BaseDirectory, "WMS.*.xml")) c.IncludeXmlComments(file, true); foreach (var file in Directory.GetFiles(AppContext.BaseDirectory, "WMS.Web.*.xml")) c.IncludeXmlComments(file, true);
#endregion #endregion
#region swagger验证功能 #region swagger验证功能