10 2022 档案
摘要:一、普通路由 需要启用属性路由 App_Start/RouteConfig.cs routes.MapMvcAttributeRoutes();//启用路由属性,启用后可在控制器上设置路由 1、修改Controller路由 [RoutePrefix("news")] //修改Controller路由
阅读全文
摘要:1、在 Startup.cs 的函数 ConfigureServices 添加 services.AddControllers(); public void ConfigureServices(IServiceCollection services) { services.AddRazorPages
阅读全文
浙公网安备 33010602011771号