首页 > 技术文章 > MVC中Area中AreaRegistration.cs中配置路由的目的是什么?

kingsmart 2020-05-13 17:57 原文

MVC中Area中AreaRegistration.cs中配置路由的目的是什么?

有一次AreaRegistration.cs中的命名空间改为WitBPM.Areas.Customer.Controllers,而controller中的namespace还是WitBPM_Invoice.Areas.Customer.Controllers,然后调用controller中方法,就报404错误。路由配置错了,无法找到。

 

 

 

推荐阅读