zoukankan      html  css  js  c++  java
  • Area路由的配置

    startup.cs文件


    app.UseEndpoints(endpoints =>
    {
    endpoints.MapControllerRoute(
    name: "Areas",
    pattern: "{area:exists}/{controller=Index}/{action=Index}/{id?}",
    defaults: new { Area = "Admin", Controller = "Index", Action = "Index" }
    );
    });
    app.UseEndpoints(endpoints =>
    {
    endpoints.MapControllerRoute(
    name: "default",
    pattern: "{controller=Home}/{action=Index}/{id?}");
    });

  • 相关阅读:
    C
    B
    A
    F
    C
    H
    Fang Fang hdu 5455
    Fire Net hdu1045(DFS)
    Sudoku HDU 5547(DFS)
    UVA 10200 Prime Time (打表)
  • 原文地址:https://www.cnblogs.com/wugh8726254/p/13059223.html
Copyright © 2011-2022 走看看