asp.net5 Area的處理

Controller加上Attributeapp

[Area("SystemSecurity")]

startup中配置spa

            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?}");
            });
相關文章
相關標籤/搜索