mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-04 16:50:52 +08:00
sql日志打印输出配置
This commit is contained in:
@@ -31,6 +31,10 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
//为 Swagger JSON and UI设置xml文档注释路径
|
||||
//获取应用程序所在目录(绝对路径,不受工作目录影响,建议采用此方法获取路径使用windwos&Linux)
|
||||
var basePath = Path.GetDirectoryName(typeof(Program).Assembly.Location);
|
||||
if (basePath is null)
|
||||
{
|
||||
throw new Exception("未找到swagger文件");
|
||||
}
|
||||
var apiXmlPath = Path.Combine(basePath, @"Config/SwaggerDoc.xml");//控制器层注释
|
||||
//var entityXmlPath = Path.Combine(basePath, @"SwaggerDoc.xml");//实体注释
|
||||
//c.IncludeXmlComments(apiXmlPath, true);//true表示显示控制器注释
|
||||
|
||||
Reference in New Issue
Block a user