//配置路由 app.UseMvc(buider => { buider.MapRoute("Default", "{controller=home}/{action=index}/{id?}"); } );