标签:
Controller加上Attribute
[Area("SystemSecurity")]
startup中配置
app.UseMvc(routes => { // Areas support routes.MapRoute( name: "areaRoute", template: "{area:exists}/{controller=Home}/{action=Index}/{id?}"); routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); });
标签:
原文地址:http://www.cnblogs.com/chenfulai/p/5845752.html