mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-04 16:16:35 +08:00
添加automapper的依赖注入
This commit is contained in:
@@ -57,6 +57,10 @@ builder.Services.AddSqlsugarServer();
|
||||
#endregion
|
||||
builder.Services.AddQuartzService();
|
||||
#region
|
||||
//AutoMapper注入
|
||||
#endregion
|
||||
builder.Services.AddAutoMapperService();
|
||||
#region
|
||||
//控制器+过滤器配置
|
||||
#endregion
|
||||
builder.Services.AddControllers(optios => {
|
||||
@@ -150,7 +154,7 @@ app.UseCorsService();
|
||||
#region
|
||||
//健康检查注入
|
||||
#endregion
|
||||
app.UseHealthCheckMiddleware();
|
||||
app.UseHealthCheckService();
|
||||
#region
|
||||
//鉴权注入
|
||||
#endregion
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"apollo": {
|
||||
"AppId": "ApiMicroservice",
|
||||
"Env": "DEV",
|
||||
"MetaServer": "http://119.91.207.67:18080",
|
||||
"ConfigServer": [ "http://119.91.207.67:18080" ]
|
||||
"MetaServer": "http://[xxxx]:18080",
|
||||
"ConfigServer": [ "http://[xxxx]:18080" ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user