mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-19 16:06:36 +08:00
更改项目目录
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user