其他分享
首页 > 其他分享> > MVC中Area中AreaRegistration.cs中配置路由的目的是什么?

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

作者:互联网

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

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

 

 

 

标签:Customer,Area,MVC,AreaRegistration,cs,路由,Areas
来源: https://www.cnblogs.com/kingsmart/p/12883952.html