1 Star 0 Fork 0

JackLovel / core7-website

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Program.cs 543 Bytes
一键复制 编辑 原始数据 按行查看 历史
JackLovel 提交于 2022-03-27 21:26 . update
using core6_website.Models;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
builder.Services.AddSingleton<IStudentRepo, MockRepo>();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();
1
https://gitee.com/wcc210/core7-website.git
git@gitee.com:wcc210/core7-website.git
wcc210
core7-website
core7-website
master

搜索帮助