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

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

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

 

 

 

posted @ 2020-05-13 17:57  留下成长的足迹  阅读(229)  评论(0编辑  收藏  举报