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.
ASP.NET MVC路由官方链接及注意点
博客提供了ASP.NET MVC路由的官方链接,包括路由概述和创建自定义路由。同时指出添加路由顺序很重要,要将更具体的路由放前面,每个MVC应用程序须配置至少一条路由,且路由名字必须唯一。
1443

被折叠的 条评论
为什么被折叠?



