1.官方链接
- ASP.NET MVC 路由概述:https://docs.microsoft.com/zh-cn/aspnet/mvc/overview/older-versions-1/controllers-and-routing/asp-net-mvc-routing-overview-cs
- 创建自定义路由:https://docs.microsoft.com/zh-cn/aspnet/mvc/overview/older-versions-1/controllers-and-routing/creating-custom-routes-cs
2.注意点
- 添加路由的顺序很重要,将更加具体的路由放在前面。
- The order of the routes that you add to the route table is important.
- 每个MVC应用程序都必须配置(注册)至少一条由MVC框架配置的路由。
- 路由名字必须唯一
- Route names must be unique.