更改项目目录

This commit is contained in:
橙子
2023-01-24 21:02:39 +08:00
parent ec440f13b1
commit 80723496d0
21 changed files with 231 additions and 28 deletions

View File

@@ -5,13 +5,13 @@ using Yi.Framework.Core.Extensions;
using Yi.Template.Web;
var builder = WebApplication.CreateBuilder(args);
//设置启动url
//设置启动url
builder.WebHost.UseStartUrlsServer(builder.Configuration);
//添加模块
//添加模块
builder.UseYiModules(typeof(YiTemplateWebModule));
//添加autofac模块,需要添加模块
//添加autofac模块,需要添加模块
builder.Host.ConfigureAutoFacContainer(container =>
{
container.RegisterYiModule(AutoFacModuleEnum.PropertiesAutowiredModule, typeof(YiTemplateWebModule).Assembly);
@@ -19,7 +19,7 @@ builder.Host.ConfigureAutoFacContainer(container =>
var app = builder.Build();
//全局错误中间件,需要放在最早
//全局错误中间件,需要放在最早
app.UseErrorHandlingServer();
app.UseAuthentication();