完善系统设置,增加404页面

This commit is contained in:
2018-04-18 00:27:37 +08:00
parent ef947bf890
commit 309b696266
7 changed files with 524 additions and 0 deletions
+2
View File
@@ -68,6 +68,8 @@ namespace COMCMS.Web
{
app.UseExceptionHandler("/Home/Error");
}
//其他错误页面处理
app.UseStatusCodePagesWithReExecute("/StatusCode/{0}");
//启用Session
app.UseSession();
app.UseStaticFiles();