MapControllers():使用特征路由,即[Route()]
MapControllerRoute(name:"",pattern:"{controller=Home}/{action=Index}/{id?}");自定义路由,引号内路由自定义
MapDefaultControllerRoute():使用默认路由{controller=Home}/{action=Index}/{id?}
MapGet("",async context=>{});定义指定路由
lwl1569 |
|
||
Copyright © 2024 lwl1569
Powered by .NET 9.0 on Kubernetes |