且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET MVC 默认路由?

更新时间:2023-02-16 16:39:33

确保 Default 路由位于您列出的路由表的BOTTOM.当涉及到 ASP.NET MVC 路由表时,顺序很重要.

Make sure the Default route is at the BOTTOM of your listed route table. Order matters when it comes to ASP.NET MVC Routing tables.

正确的排序是从最具体"的路线到最不具体的路线.

The correct ordering is your 'most specific' route to your least specific route.